#2142B3#2142B3
#2142B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.183 H 266.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2142B3 |
|---|---|
| RGB | rgb(33, 66, 179) |
| HSL | hsl(226, 69%, 42%) |
| HSV | hsv(226, 82%, 70%) |
| CMYK | cmyk(81.6%, 63.1%, 0%, 29.8%) |
| CIE-LAB | lab(32.86, 30.89, -63.08) |
| CIE-LCH | lch(32.86, 70.23, 296.09°) |
| OKLab | oklab(43.3% -0.0127 -0.1826) |
| OKLCH | oklch(43.3% 0.183 266) |
| XYZ | xyz(10.7092, 7.4732, 43.5171) |
| Luminance | 0.0747 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.80
Sapphire (survey)
#2138AB
ΔE00 3.13
Cobalt
#0047AB
ΔE00 3.52
Blue (survey)
#0343DF
ΔE00 5.51
Sapphire
#0F52BA
ΔE00 5.78
Ocean Blue
#4F42B5
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2142B3 #B39221
analogous
#218BB3 #2142B3 #4921B3
triadic
#2142B3 #B32142 #42B321
tetradic
#2142B3 #B3218B #B39221 #21B349
square
#2142B3 #B3218B #B39221 #21B349
split-complementary
#2142B3 #B34921 #8BB321
monochromatic
#0E1C4C #172F7F #2142B3 #375CDA #6B86E4
Accessibility & contrast
On white
8.42
#2142B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#2142B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2142B3
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2142B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2142B3 | 1.00 | 8.42 | 2.49 | 8.42 |
| #FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2142b3; /* rgb */ color: rgb(33, 66, 179); /* oklch */ color: oklch(43.3% 0.183 266.0);
Tailwind
colors: {
custom: {
50: '#7676cb',
500: '#2142b3',
950: '#000000',
},
}SCSS
$custom: #2142b3; $custom-light: #7676cb; $custom-dark: #000000;
JSON
{
"hex": "#2142b3",
"rgb": {
"r": 33,
"g": 66,
"b": 179
},
"hsl": {
"h": 226.438,
"s": 68.868,
"l": 41.569
},
"oklch": {
"l": 0.43301,
"c": 0.18301,
"h": 266
},
"luminance": 0.07474
}Semantic roles & 50–950 ramp
primary
#2142B3
secondary
#CAB366
accent
#C43CEC
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82