#2142A7#2142A7
#2142A7 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.167 H 265.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2142A7 |
|---|---|
| RGB | rgb(33, 66, 167) |
| HSL | hsl(225, 67%, 39%) |
| HSV | hsv(225, 80%, 65%) |
| CMYK | cmyk(80.2%, 60.5%, 0%, 34.5%) |
| CIE-LAB | lab(31.83, 26.28, -57.61) |
| CIE-LCH | lch(31.83, 63.32, 294.52°) |
| OKLab | oklab(42.21% -0.0127 -0.1665) |
| OKLCH | oklch(42.21% 0.167 265.6) |
| XYZ | xyz(9.5480, 7.0087, 37.4013) |
| Luminance | 0.0701 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.82
Sapphire (survey)
#2138AB
ΔE00 3.40
Blue Blue
#2242C7
ΔE00 4.53
Cobalt (survey)
#1E488F
ΔE00 4.83
Blueberry
#464196
ΔE00 5.84
Sapphire
#0F52BA
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2142A7 #A78621
analogous
#2185A7 #2142A7 #4321A7
triadic
#2142A7 #A72142 #42A721
tetradic
#2142A7 #A72185 #A78621 #21A743
square
#2142A7 #A72185 #A78621 #21A743
split-complementary
#2142A7 #A74321 #85A721
monochromatic
#0D1A41 #172E74 #2142A7 #2F58D6 #6281E0
Accessibility & contrast
On white
8.74
#2142A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#2142A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2142A7
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2142A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2142A7 | 1.00 | 8.74 | 2.40 | 8.74 |
| #FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2142a7; /* rgb */ color: rgb(33, 66, 167); /* oklch */ color: oklch(42.2% 0.167 265.6);
Tailwind
colors: {
custom: {
50: '#7376c2',
500: '#2142a7',
950: '#000000',
},
}SCSS
$custom: #2142a7; $custom-light: #7376c2; $custom-dark: #000000;
JSON
{
"hex": "#2142a7",
"rgb": {
"r": 33,
"g": 66,
"b": 167
},
"hsl": {
"h": 225.224,
"s": 67,
"l": 39.216
},
"oklch": {
"l": 0.42213,
"c": 0.16703,
"h": 265.6
},
"luminance": 0.0701
}Semantic roles & 50–950 ramp
primary
#2142A7
secondary
#C5AC5F
accent
#C03EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81