#2142B2#2142B2
#2142B2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.182 H 266.0°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2142B2 |
|---|---|
| RGB | rgb(33, 66, 178) |
| HSL | hsl(226, 69%, 41%) |
| HSV | hsv(226, 81%, 70%) |
| CMYK | cmyk(81.5%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(32.77, 30.51, -62.63) |
| CIE-LCH | lch(32.77, 69.66, 295.97°) |
| OKLab | oklab(43.21% -0.0126 -0.1813) |
| OKLCH | oklch(43.21% 0.182 266) |
| XYZ | xyz(10.6085, 7.4329, 42.9864) |
| Luminance | 0.0743 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.94
Sapphire (survey)
#2138AB
ΔE00 3.11
Cobalt
#0047AB
ΔE00 3.44
Blue (survey)
#0343DF
ΔE00 5.65
Sapphire
#0F52BA
ΔE00 5.78
Ocean Blue
#4F42B5
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2142B2 #B29121
analogous
#218BB2 #2142B2 #4921B2
triadic
#2142B2 #B22142 #42B221
tetradic
#2142B2 #B2218B #B29121 #21B249
square
#2142B2 #B2218B #B29121 #21B249
split-complementary
#2142B2 #B24921 #8BB221
monochromatic
#0E1C4B #172F7E #2142B2 #365CDA #6A86E3
Accessibility & contrast
On white
8.44
#2142B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#2142B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2142B2
8.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2142B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2142B2 | 1.00 | 8.44 | 2.49 | 8.44 |
| #FFFFFF | 8.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2142b2; /* rgb */ color: rgb(33, 66, 178); /* oklch */ color: oklch(43.2% 0.182 266.0);
Tailwind
colors: {
custom: {
50: '#7676ca',
500: '#2142b2',
950: '#000000',
},
}SCSS
$custom: #2142b2; $custom-light: #7676ca; $custom-dark: #000000;
JSON
{
"hex": "#2142b2",
"rgb": {
"r": 33,
"g": 66,
"b": 178
},
"hsl": {
"h": 226.345,
"s": 68.72,
"l": 41.373
},
"oklch": {
"l": 0.43209,
"c": 0.1817,
"h": 266
},
"luminance": 0.07434
}Semantic roles & 50–950 ramp
primary
#2142B2
secondary
#C9B366
accent
#C43CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82