#2140B4#2140B4
#2140B4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.187 H 266.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2140B4 |
|---|---|
| RGB | rgb(33, 64, 180) |
| HSL | hsl(227, 69%, 42%) |
| HSV | hsv(227, 82%, 71%) |
| CMYK | cmyk(81.7%, 64.4%, 0%, 29.4%) |
| CIE-LAB | lab(32.45, 32.58, -64.35) |
| CIE-LCH | lch(32.45, 72.13, 296.85°) |
| OKLab | oklab(43.02% -0.0116 -0.1863) |
| OKLCH | oklch(43.02% 0.187 266.4) |
| XYZ | xyz(10.6959, 7.2841, 44.0134) |
| Luminance | 0.0728 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.58
Blue Blue
#2242C7
ΔE00 2.63
Cobalt
#0047AB
ΔE00 4.11
Blue (survey)
#0343DF
ΔE00 5.41
Ocean Blue
#4F42B5
ΔE00 5.59
Blueberry
#464196
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2140B4 #B49521
analogous
#218AB4 #2140B4 #4C21B4
triadic
#2140B4 #B42140 #40B421
tetradic
#2140B4 #B4218A #B49521 #21B44C
square
#2140B4 #B4218A #B49521 #21B44C
split-complementary
#2140B4 #B44C21 #8AB421
monochromatic
#0E1B4D #182E80 #2140B4 #385ADA #6B85E4
Accessibility & contrast
On white
8.55
#2140B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#2140B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2140B4
8.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2140B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2140B4 | 1.00 | 8.55 | 2.46 | 8.55 |
| #FFFFFF | 8.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2140b4; /* rgb */ color: rgb(33, 64, 180); /* oklch */ color: oklch(43.0% 0.187 266.4);
Tailwind
colors: {
custom: {
50: '#7774cb',
500: '#2140b4',
950: '#000000',
},
}SCSS
$custom: #2140b4; $custom-light: #7774cb; $custom-dark: #000000;
JSON
{
"hex": "#2140b4",
"rgb": {
"r": 33,
"g": 64,
"b": 180
},
"hsl": {
"h": 227.347,
"s": 69.014,
"l": 41.765
},
"oklch": {
"l": 0.43022,
"c": 0.18668,
"h": 266.4
},
"luminance": 0.07285
}Semantic roles & 50–950 ramp
primary
#2140B4
secondary
#CAB567
accent
#C73CEC
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82