#2142B4#2142B4
#2142B4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.184 H 266.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2142B4 |
|---|---|
| RGB | rgb(33, 66, 180) |
| HSL | hsl(227, 69%, 42%) |
| HSV | hsv(227, 82%, 71%) |
| CMYK | cmyk(81.7%, 63.3%, 0%, 29.4%) |
| CIE-LAB | lab(32.95, 31.27, -63.53) |
| CIE-LCH | lch(32.95, 70.81, 296.21°) |
| OKLab | oklab(43.39% -0.0127 -0.1839) |
| OKLCH | oklch(43.39% 0.184 266.1) |
| XYZ | xyz(10.8107, 7.5138, 44.0517) |
| Luminance | 0.0751 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.65
Sapphire (survey)
#2138AB
ΔE00 3.15
Cobalt
#0047AB
ΔE00 3.61
Blue (survey)
#0343DF
ΔE00 5.37
Ocean Blue
#4F42B5
ΔE00 5.76
Sapphire
#0F52BA
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2142B4 #B49321
analogous
#218BB4 #2142B4 #4A21B4
triadic
#2142B4 #B42142 #42B421
tetradic
#2142B4 #B4218B #B49321 #21B44A
square
#2142B4 #B4218B #B49321 #21B44A
split-complementary
#2142B4 #B44A21 #8BB421
monochromatic
#0E1C4D #182F80 #2142B4 #385CDA #6B87E4
Accessibility & contrast
On white
8.39
#2142B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2142B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2142B4
8.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2142B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2142B4 | 1.00 | 8.39 | 2.50 | 8.39 |
| #FFFFFF | 8.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2142b4; /* rgb */ color: rgb(33, 66, 180); /* oklch */ color: oklch(43.4% 0.184 266.1);
Tailwind
colors: {
custom: {
50: '#7776cb',
500: '#2142b4',
950: '#000000',
},
}SCSS
$custom: #2142b4; $custom-light: #7776cb; $custom-dark: #000000;
JSON
{
"hex": "#2142b4",
"rgb": {
"r": 33,
"g": 66,
"b": 180
},
"hsl": {
"h": 226.531,
"s": 69.014,
"l": 41.765
},
"oklch": {
"l": 0.43394,
"c": 0.18433,
"h": 266.1
},
"luminance": 0.07515
}Semantic roles & 50–950 ramp
primary
#2142B4
secondary
#CAB467
accent
#C43CEC
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82