#2142A6#2142A6
#2142A6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.166 H 265.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2142A6 |
|---|---|
| RGB | rgb(33, 66, 166) |
| HSL | hsl(225, 67%, 39%) |
| HSV | hsv(225, 80%, 65%) |
| CMYK | cmyk(80.1%, 60.2%, 0%, 34.9%) |
| CIE-LAB | lab(31.74, 25.89, -57.15) |
| CIE-LCH | lch(31.74, 62.74, 294.38°) |
| OKLab | oklab(42.12% -0.0128 -0.1652) |
| OKLCH | oklch(42.12% 0.166 265.6) |
| XYZ | xyz(9.4559, 6.9718, 36.9163) |
| Luminance | 0.0697 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.80
Sapphire (survey)
#2138AB
ΔE00 3.47
Blue Blue
#2242C7
ΔE00 4.68
Cobalt (survey)
#1E488F
ΔE00 4.71
Blueberry
#464196
ΔE00 5.82
Sapphire
#0F52BA
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2142A6 #A68521
analogous
#2185A6 #2142A6 #4321A6
triadic
#2142A6 #A62142 #42A621
tetradic
#2142A6 #A62185 #A68521 #21A643
square
#2142A6 #A62185 #A68521 #21A643
split-complementary
#2142A6 #A64321 #85A621
monochromatic
#0D1940 #172E73 #2142A6 #2F58D6 #6281E0
Accessibility & contrast
On white
8.77
#2142A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#2142A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2142A6
8.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2142A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2142A6 | 1.00 | 8.77 | 2.39 | 8.77 |
| #FFFFFF | 8.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2142a6; /* rgb */ color: rgb(33, 66, 166); /* oklch */ color: oklch(42.1% 0.166 265.6);
Tailwind
colors: {
custom: {
50: '#7375c1',
500: '#2142a6',
950: '#000000',
},
}SCSS
$custom: #2142a6; $custom-light: #7375c1; $custom-dark: #000000;
JSON
{
"hex": "#2142a6",
"rgb": {
"r": 33,
"g": 66,
"b": 166
},
"hsl": {
"h": 225.113,
"s": 66.834,
"l": 39.02
},
"oklch": {
"l": 0.42124,
"c": 0.16567,
"h": 265.6
},
"luminance": 0.06973
}Semantic roles & 50–950 ramp
primary
#2142A6
secondary
#C5AB5E
accent
#BF3EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81