#2158C2#2158C2
#2158C2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.0% C 0.176 H 261.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2158C2 |
|---|---|
| RGB | rgb(33, 88, 194) |
| HSL | hsl(220, 71%, 45%) |
| HSV | hsv(220, 83%, 76%) |
| CMYK | cmyk(83%, 54.6%, 0%, 23.9%) |
| CIE-LAB | lab(39.91, 22.13, -60.40) |
| CIE-LCH | lch(39.91, 64.32, 290.13°) |
| OKLab | oklab(48.96% -0.0252 -0.1743) |
| OKLCH | oklch(48.96% 0.176 261.8) |
| XYZ | xyz(13.8510, 11.1961, 52.4595) |
| Luminance | 0.1120 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.29
Denim
#1560BD
ΔE00 3.65
Azul
#1D5DEC
ΔE00 5.60
Denim Blue
#3B5B92
ΔE00 6.02
Cobalt
#0047AB
ΔE00 6.05
Warm Blue
#4B57DB
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2158C2 #C28B21
analogous
#21A9C2 #2158C2 #3B21C2
triadic
#2158C2 #C22158 #58C221
tetradic
#2158C2 #C221A9 #C28B21 #21C23B
square
#2158C2 #C221A9 #C28B21 #21C23B
split-complementary
#2158C2 #C23B21 #A9C221
monochromatic
#0F2959 #18408E #2158C2 #4177DF #769DE8
Accessibility & contrast
On white
6.48
#2158C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#2158C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2158C2
6.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2158C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2158C2 | 1.00 | 6.48 | 3.24 | 6.48 |
| #FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #2158c2; /* rgb */ color: rgb(33, 88, 194); /* oklch */ color: oklch(49.0% 0.176 261.8);
Tailwind
colors: {
custom: {
50: '#7986d5',
500: '#2158c2',
950: '#000000',
},
}SCSS
$custom: #2158c2; $custom-light: #7986d5; $custom-dark: #000000;
JSON
{
"hex": "#2158c2",
"rgb": {
"r": 33,
"g": 88,
"b": 194
},
"hsl": {
"h": 219.503,
"s": 70.925,
"l": 44.51
},
"oklch": {
"l": 0.48963,
"c": 0.17616,
"h": 261.8
},
"luminance": 0.11198
}Semantic roles & 50–950 ramp
primary
#2158C2
secondary
#CFAE70
accent
#B03AEE
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83