#2140B2#2140B2
#2140B2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.184 H 266.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2140B2 |
|---|---|
| RGB | rgb(33, 64, 178) |
| HSL | hsl(227, 69%, 41%) |
| HSV | hsv(227, 81%, 70%) |
| CMYK | cmyk(81.5%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(32.27, 31.83, -63.46) |
| CIE-LCH | lch(32.27, 70.99, 296.63°) |
| OKLab | oklab(42.83% -0.0116 -0.1837) |
| OKLCH | oklch(42.83% 0.184 266.4) |
| XYZ | xyz(10.4937, 7.2032, 42.9481) |
| Luminance | 0.0720 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.50
Blue Blue
#2242C7
ΔE00 2.90
Cobalt
#0047AB
ΔE00 3.96
Blue (survey)
#0343DF
ΔE00 5.68
Ocean Blue
#4F42B5
ΔE00 5.70
Blueberry
#464196
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2140B2 #B29321
analogous
#2189B2 #2140B2 #4A21B2
triadic
#2140B2 #B22140 #40B221
tetradic
#2140B2 #B22189 #B29321 #21B24A
square
#2140B2 #B22189 #B29321 #21B24A
split-complementary
#2140B2 #B24A21 #89B221
monochromatic
#0E1B4B #172D7E #2140B2 #3659DA #6A84E3
Accessibility & contrast
On white
8.60
#2140B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#2140B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2140B2
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2140B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2140B2 | 1.00 | 8.60 | 2.44 | 8.60 |
| #FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2140b2; /* rgb */ color: rgb(33, 64, 178); /* oklch */ color: oklch(42.8% 0.184 266.4);
Tailwind
colors: {
custom: {
50: '#7674ca',
500: '#2140b2',
950: '#000000',
},
}SCSS
$custom: #2140b2; $custom-light: #7674ca; $custom-dark: #000000;
JSON
{
"hex": "#2140b2",
"rgb": {
"r": 33,
"g": 64,
"b": 178
},
"hsl": {
"h": 227.172,
"s": 68.72,
"l": 41.373
},
"oklch": {
"l": 0.42834,
"c": 0.18407,
"h": 266.4
},
"luminance": 0.07204
}Semantic roles & 50–950 ramp
primary
#2140B2
secondary
#C9B466
accent
#C63CEC
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82