#2152B4#2152B4
#2152B4 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.6% C 0.165 H 262.2°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2152B4 |
|---|---|
| RGB | rgb(33, 82, 180) |
| HSL | hsl(220, 69%, 42%) |
| HSV | hsv(220, 82%, 71%) |
| CMYK | cmyk(81.7%, 54.4%, 0%, 29.4%) |
| CIE-LAB | lab(37.21, 20.64, -56.58) |
| CIE-LCH | lch(37.21, 60.22, 290.04°) |
| OKLab | oklab(46.59% -0.0225 -0.1632) |
| OKLCH | oklch(46.59% 0.165 262.2) |
| XYZ | xyz(11.8797, 9.6518, 44.4080) |
| Luminance | 0.0965 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.02
Cobalt
#0047AB
ΔE00 3.68
Dusk Blue
#26538D
ΔE00 5.15
Denim
#1560BD
ΔE00 5.30
Denim Blue
#3B5B92
ΔE00 5.39
Cobalt (survey)
#1E488F
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2152B4 #B48321
analogous
#219CB4 #2152B4 #3A21B4
triadic
#2152B4 #B42152 #52B421
tetradic
#2152B4 #B4219C #B48321 #21B43A
square
#2152B4 #B4219C #B48321 #21B43A
split-complementary
#2152B4 #B43A21 #9CB421
monochromatic
#0E234D #183A80 #2152B4 #386EDA #6B94E4
Accessibility & contrast
On white
7.17
#2152B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#2152B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2152B4
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2152B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2152B4 | 1.00 | 7.17 | 2.93 | 7.17 |
| #FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2152b4; /* rgb */ color: rgb(33, 82, 180); /* oklch */ color: oklch(46.6% 0.165 262.2);
Tailwind
colors: {
custom: {
50: '#7581cb',
500: '#2152b4',
950: '#000000',
},
}SCSS
$custom: #2152b4; $custom-light: #7581cb; $custom-dark: #000000;
JSON
{
"hex": "#2152b4",
"rgb": {
"r": 33,
"g": 82,
"b": 180
},
"hsl": {
"h": 220,
"s": 69.014,
"l": 41.765
},
"oklch": {
"l": 0.46587,
"c": 0.16478,
"h": 262.2
},
"luminance": 0.09653
}Semantic roles & 50–950 ramp
primary
#2152B4
secondary
#CAA967
accent
#B13CEC
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82