#2152B2#2152B2
#2152B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.4% C 0.162 H 261.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2152B2 |
|---|---|
| RGB | rgb(33, 82, 178) |
| HSL | hsl(220, 69%, 41%) |
| HSV | hsv(220, 81%, 70%) |
| CMYK | cmyk(81.5%, 53.9%, 0%, 30.2%) |
| CIE-LAB | lab(37.06, 19.85, -55.64) |
| CIE-LCH | lch(37.06, 59.08, 289.64°) |
| OKLab | oklab(46.43% -0.0227 -0.1605) |
| OKLCH | oklch(46.43% 0.162 261.9) |
| XYZ | xyz(11.6775, 9.5709, 43.3428) |
| Luminance | 0.0957 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.14
Cobalt
#0047AB
ΔE00 3.61
Dusk Blue
#26538D
ΔE00 4.89
Denim Blue
#3B5B92
ΔE00 5.21
Denim
#1560BD
ΔE00 5.29
Cobalt (survey)
#1E488F
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2152B2 #B28121
analogous
#219BB2 #2152B2 #3921B2
triadic
#2152B2 #B22152 #52B221
tetradic
#2152B2 #B2219B #B28121 #21B239
square
#2152B2 #B2219B #B28121 #21B239
split-complementary
#2152B2 #B23921 #9BB221
monochromatic
#0E224B #173A7E #2152B2 #366EDA #6A93E3
Accessibility & contrast
On white
7.21
#2152B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#2152B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2152B2
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2152B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2152B2 | 1.00 | 7.21 | 2.91 | 7.21 |
| #FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2152b2; /* rgb */ color: rgb(33, 82, 178); /* oklch */ color: oklch(46.4% 0.162 261.9);
Tailwind
colors: {
custom: {
50: '#7581ca',
500: '#2152b2',
950: '#000000',
},
}SCSS
$custom: #2152b2; $custom-light: #7581ca; $custom-dark: #000000;
JSON
{
"hex": "#2152b2",
"rgb": {
"r": 33,
"g": 82,
"b": 178
},
"hsl": {
"h": 219.724,
"s": 68.72,
"l": 41.373
},
"oklch": {
"l": 0.46427,
"c": 0.16208,
"h": 261.9
},
"luminance": 0.09572
}Semantic roles & 50–950 ramp
primary
#2152B2
secondary
#C9A866
accent
#B03CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82