Palettes / Colors / #002142
#002142 — Dark Vivid Blue
#002142 is a blue color we call Dark Vivid Blue, closest to the named color MidnightBlue (#191970). It belongs to the blue family.
#002142 is a cool blue color associated with trust, calm and professionalism. It is deep enough for text, outlines and dark interface surfaces, and makes light colors glow next to it.
Its strongest partner is its complement #422100; it also sits naturally between #004242 and #000042. In the palettes below you can see it working alongside real color combinations from our collection.
Color values
| HEX | #002142 |
|---|---|
| RGB | 0, 33, 66 |
| HSL | 210°, 100%, 13% |
| HSV | 210°, 100%, 26% |
| CMYK | 100%, 50%, 0%, 74% |
| XYZ | 1.53, 1.48, 5.36 |
| Yxy | 1.48, 0.1825, 0.1770 |
| CIE-Lab | 12.49, 3.38, -24.18 |
| Hunter Lab | 12.17, 1.78, -18.96 |
RGB & CMYK percentages
Red 0% · Green 13% · Blue 26%
Cyan 100% · Magenta 50% · Yellow 0% · Key 74%
CMYK values are unprofiled approximations for screen reference — not a print-proofing guarantee.
Previews
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
CSS code for #002142
.text { color: #002142; }
.background { background-color: #002142; }
.border { border: 3px solid #002142; }
.text-rgb { color: rgb(0, 33, 66); }
.text-hsl { color: hsl(210, 100%, 13%); }
.text-shadow-hex { text-shadow: 4px 4px 2px #002142; }
.text-shadow-rgba { text-shadow: 4px 4px 2px rgba(0, 33, 66, 0.8); }
.box-shadow-hex { box-shadow: 1px 1px 3px 2px #002142; }
.box-shadow-rgba { box-shadow: 1px 1px 3px 2px rgba(0, 33, 66, 0.8); }
HTML: <p style="color:#002142">Text here</p> · <div style="background-color:#002142">Div content here</div>
Shades of #002142
Tints of #002142
Tones of #002142
Color harmonies
Complementary — #422100:
Analogous:
Triadic:
Contrast & accessibility
| Against white text | 16.20:1 AAA |
|---|---|
| Against black text | 1.30:1 Fails |
Best text color on #002142: #FFFFFF.
How #002142 looks with color blindness
Simulated with standard Machado color-vision-deficiency matrices — useful when this color carries meaning in charts, maps or interfaces:
Closest design-system colors
The nearest matches in the Tailwind CSS, Material Design and Bootstrap palettes — handy when you need a framework class instead of a raw hex:
Palettes with a similar color
These palettes use a close neighbour of #002142 rather than the exact color:
Similar colors
The closest colors that actually appear in our palette collection — click any to open its page:
Browse neighbouring colors
Frequently asked questions
What color is #002142?
#002142 is Dark Vivid Blue, a blue color (RGB 0, 33, 66). Its closest standard named color is MidnightBlue.
What is the RGB and HSL of #002142?
#002142 is RGB 0, 33, 66 — HSL 210°, 100%, 13% — CMYK 100%, 50%, 0%, 74%.
What colors go with #002142?
Its complement is #422100; analogous partners are #004242 and #000042. It also appears in 6+ palettes in our collection.
Can I use #002142 for text?
White text on #002142 has a contrast ratio of 16.20:1 (passes WCAG AA); black text gives 1.30:1.