#2157C2#2157C2
#2157C2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.8% C 0.177 H 262.0°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2157C2 |
|---|---|
| RGB | rgb(33, 87, 194) |
| HSL | hsl(220, 71%, 45%) |
| HSV | hsv(220, 83%, 76%) |
| CMYK | cmyk(83%, 55.2%, 0%, 23.9%) |
| CIE-LAB | lab(39.64, 22.79, -60.84) |
| CIE-LCH | lch(39.64, 64.97, 290.54°) |
| OKLab | oklab(48.76% -0.0246 -0.1757) |
| OKLCH | oklch(48.76% 0.177 262) |
| XYZ | xyz(13.7695, 11.0331, 52.4323) |
| Luminance | 0.1104 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.08
Denim
#1560BD
ΔE00 3.99
Azul
#1D5DEC
ΔE00 5.67
Cobalt
#0047AB
ΔE00 5.79
Denim Blue
#3B5B92
ΔE00 6.10
Warm Blue
#4B57DB
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2157C2 #C28C21
analogous
#21A8C2 #2157C2 #3C21C2
triadic
#2157C2 #C22157 #57C221
tetradic
#2157C2 #C221A8 #C28C21 #21C23C
square
#2157C2 #C221A8 #C28C21 #21C23C
split-complementary
#2157C2 #C23C21 #A8C221
monochromatic
#0F2859 #18408E #2157C2 #4176DF #769CE8
Accessibility & contrast
On white
6.55
#2157C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#2157C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2157C2
6.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2157C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2157C2 | 1.00 | 6.55 | 3.21 | 6.55 |
| #FFFFFF | 6.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #2157c2; /* rgb */ color: rgb(33, 87, 194); /* oklch */ color: oklch(48.8% 0.177 262.0);
Tailwind
colors: {
custom: {
50: '#7985d5',
500: '#2157c2',
950: '#000000',
},
}SCSS
$custom: #2157c2; $custom-light: #7985d5; $custom-dark: #000000;
JSON
{
"hex": "#2157c2",
"rgb": {
"r": 33,
"g": 87,
"b": 194
},
"hsl": {
"h": 219.876,
"s": 70.925,
"l": 44.51
},
"oklch": {
"l": 0.48757,
"c": 0.17738,
"h": 262
},
"luminance": 0.11035
}Semantic roles & 50–950 ramp
primary
#2157C2
secondary
#CFAF70
accent
#B13AEE
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83