#2142A1#2142A1
#2142A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.159 H 265.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2142A1 |
|---|---|
| RGB | rgb(33, 66, 161) |
| HSL | hsl(225, 66%, 38%) |
| HSV | hsv(225, 80%, 63%) |
| CMYK | cmyk(79.5%, 59%, 0%, 36.9%) |
| CIE-LAB | lab(31.33, 23.95, -54.81) |
| CIE-LCH | lch(31.33, 59.81, 293.60°) |
| OKLab | oklab(41.69% -0.0129 -0.1583) |
| OKLCH | oklch(41.69% 0.159 265.3) |
| XYZ | xyz(9.0062, 6.7919, 34.5476) |
| Luminance | 0.0679 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.80
Sapphire (survey)
#2138AB
ΔE00 3.88
Cobalt (survey)
#1E488F
ΔE00 4.11
Blue Blue
#2242C7
ΔE00 5.42
Blueberry
#464196
ΔE00 5.79
Darkish Blue
#014182
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2142A1 #A18021
analogous
#2182A1 #2142A1 #4021A1
triadic
#2142A1 #A12142 #42A121
tetradic
#2142A1 #A12182 #A18021 #21A140
square
#2142A1 #A12182 #A18021 #21A140
split-complementary
#2142A1 #A14021 #82A121
monochromatic
#0C183B #172D6E #2142A1 #2C57D4 #5E7FDE
Accessibility & contrast
On white
8.90
#2142A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2142A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2142A1
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2142A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2142A1 | 1.00 | 8.90 | 2.36 | 8.90 |
| #FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2142a1; /* rgb */ color: rgb(33, 66, 161); /* oklch */ color: oklch(41.7% 0.159 265.3);
Tailwind
colors: {
custom: {
50: '#7275be',
500: '#2142a1',
950: '#000000',
},
}SCSS
$custom: #2142a1; $custom-light: #7275be; $custom-dark: #000000;
JSON
{
"hex": "#2142a1",
"rgb": {
"r": 33,
"g": 66,
"b": 161
},
"hsl": {
"h": 224.531,
"s": 65.979,
"l": 38.039
},
"oklch": {
"l": 0.41686,
"c": 0.15886,
"h": 265.3
},
"luminance": 0.06793
}Semantic roles & 50–950 ramp
primary
#2142A1
secondary
#C3A85B
accent
#BD3FE9
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81