#2151C2#2151C2
#2151C2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.185 H 263.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2151C2 |
|---|---|
| RGB | rgb(33, 81, 194) |
| HSL | hsl(222, 71%, 45%) |
| HSV | hsv(222, 83%, 76%) |
| CMYK | cmyk(83%, 58.2%, 0%, 23.9%) |
| CIE-LAB | lab(38.02, 26.74, -63.46) |
| CIE-LCH | lch(38.02, 68.87, 292.85°) |
| OKLab | oklab(47.54% -0.0209 -0.1835) |
| OKLCH | oklch(47.54% 0.185 263.5) |
| XYZ | xyz(13.3038, 10.1016, 52.2771) |
| Luminance | 0.1010 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.06
Cobalt
#0047AB
ΔE00 4.53
Blue Blue
#2242C7
ΔE00 5.00
Blue (survey)
#0343DF
ΔE00 5.65
Denim
#1560BD
ΔE00 6.03
Warm Blue
#4B57DB
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2151C2 #C29221
analogous
#21A2C2 #2151C2 #4221C2
triadic
#2151C2 #C22151 #51C221
tetradic
#2151C2 #C221A2 #C29221 #21C242
square
#2151C2 #C221A2 #C29221 #21C242
split-complementary
#2151C2 #C24221 #A2C221
monochromatic
#0F2559 #183B8E #2151C2 #4170DF #7698E8
Accessibility & contrast
On white
6.95
#2151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#2151C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2151C2
6.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2151C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2151C2 | 1.00 | 6.95 | 3.02 | 6.95 |
| #FFFFFF | 6.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2151c2; /* rgb */ color: rgb(33, 81, 194); /* oklch */ color: oklch(47.5% 0.185 263.5);
Tailwind
colors: {
custom: {
50: '#7981d5',
500: '#2151c2',
950: '#000000',
},
}SCSS
$custom: #2151c2; $custom-light: #7981d5; $custom-dark: #000000;
JSON
{
"hex": "#2151c2",
"rgb": {
"r": 33,
"g": 81,
"b": 194
},
"hsl": {
"h": 222.112,
"s": 70.925,
"l": 44.51
},
"oklch": {
"l": 0.47542,
"c": 0.18467,
"h": 263.5
},
"luminance": 0.10103
}Semantic roles & 50–950 ramp
primary
#2151C2
secondary
#CFB370
accent
#B83AEE
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83