#2142A2#2142A2
#2142A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.160 H 265.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2142A2 |
|---|---|
| RGB | rgb(33, 66, 162) |
| HSL | hsl(225, 66%, 38%) |
| HSV | hsv(225, 80%, 64%) |
| CMYK | cmyk(79.6%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(31.41, 24.34, -55.28) |
| CIE-LCH | lch(31.41, 60.40, 293.76°) |
| OKLab | oklab(41.77% -0.0129 -0.1597) |
| OKLCH | oklch(41.77% 0.16 265.4) |
| XYZ | xyz(9.0947, 6.8273, 35.0139) |
| Luminance | 0.0683 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.79
Sapphire (survey)
#2138AB
ΔE00 3.79
Cobalt (survey)
#1E488F
ΔE00 4.23
Blue Blue
#2242C7
ΔE00 5.27
Blueberry
#464196
ΔE00 5.79
Darkish Blue
#014182
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2142A2 #A28121
analogous
#2182A2 #2142A2 #4021A2
triadic
#2142A2 #A22142 #42A221
tetradic
#2142A2 #A22182 #A28121 #21A240
square
#2142A2 #A22182 #A28121 #21A240
split-complementary
#2142A2 #A24021 #82A221
monochromatic
#0C193C #172D6F #2142A2 #2C57D4 #5F80DE
Accessibility & contrast
On white
8.88
#2142A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#2142A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2142A2
8.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2142A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2142A2 | 1.00 | 8.88 | 2.37 | 8.88 |
| #FFFFFF | 8.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2142a2; /* rgb */ color: rgb(33, 66, 162); /* oklch */ color: oklch(41.8% 0.160 265.4);
Tailwind
colors: {
custom: {
50: '#7275be',
500: '#2142a2',
950: '#000000',
},
}SCSS
$custom: #2142a2; $custom-light: #7275be; $custom-dark: #000000;
JSON
{
"hex": "#2142a2",
"rgb": {
"r": 33,
"g": 66,
"b": 162
},
"hsl": {
"h": 224.651,
"s": 66.154,
"l": 38.235
},
"oklch": {
"l": 0.41773,
"c": 0.16023,
"h": 265.4
},
"luminance": 0.06828
}Semantic roles & 50–950 ramp
primary
#2142A2
secondary
#C3A95C
accent
#BE3FE9
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81