#2151B4#2151B4
#2151B4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.166 H 262.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2151B4 |
|---|---|
| RGB | rgb(33, 81, 180) |
| HSL | hsl(220, 69%, 42%) |
| HSV | hsv(220, 82%, 71%) |
| CMYK | cmyk(81.7%, 55%, 0%, 29.4%) |
| CIE-LAB | lab(36.93, 21.30, -57.03) |
| CIE-LCH | lch(36.93, 60.88, 290.48°) |
| OKLab | oklab(46.38% -0.0218 -0.1646) |
| OKLCH | oklch(46.38% 0.166 262.4) |
| XYZ | xyz(11.8049, 9.5021, 44.3831) |
| Luminance | 0.0950 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.17
Cobalt
#0047AB
ΔE00 3.42
Dusk Blue
#26538D
ΔE00 5.27
Cobalt (survey)
#1E488F
ΔE00 5.45
Denim Blue
#3B5B92
ΔE00 5.59
Denim
#1560BD
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2151B4 #B48421
analogous
#219BB4 #2151B4 #3B21B4
triadic
#2151B4 #B42151 #51B421
tetradic
#2151B4 #B4219B #B48421 #21B43B
square
#2151B4 #B4219B #B48421 #21B43B
split-complementary
#2151B4 #B43B21 #9BB421
monochromatic
#0E224D #183A80 #2151B4 #386DDA #6B93E4
Accessibility & contrast
On white
7.24
#2151B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#2151B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2151B4
7.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2151B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2151B4 | 1.00 | 7.24 | 2.90 | 7.24 |
| #FFFFFF | 7.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2151b4; /* rgb */ color: rgb(33, 81, 180); /* oklch */ color: oklch(46.4% 0.166 262.4);
Tailwind
colors: {
custom: {
50: '#7581cb',
500: '#2151b4',
950: '#000000',
},
}SCSS
$custom: #2151b4; $custom-light: #7581cb; $custom-dark: #000000;
JSON
{
"hex": "#2151b4",
"rgb": {
"r": 33,
"g": 81,
"b": 180
},
"hsl": {
"h": 220.408,
"s": 69.014,
"l": 41.765
},
"oklch": {
"l": 0.46377,
"c": 0.16602,
"h": 262.4
},
"luminance": 0.09503
}Semantic roles & 50–950 ramp
primary
#2151B4
secondary
#CAAA67
accent
#B23CEC
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82