#2154C2#2154C2
#2154C2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.1% C 0.181 H 262.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2154C2 |
|---|---|
| RGB | rgb(33, 84, 194) |
| HSL | hsl(221, 71%, 45%) |
| HSV | hsv(221, 83%, 76%) |
| CMYK | cmyk(83%, 56.7%, 0%, 23.9%) |
| CIE-LAB | lab(38.82, 24.77, -62.16) |
| CIE-LCH | lch(38.82, 66.91, 291.72°) |
| OKLab | oklab(48.14% -0.0227 -0.1796) |
| OKLCH | oklch(48.14% 0.181 262.8) |
| XYZ | xyz(13.5316, 10.5574, 52.3531) |
| Luminance | 0.1056 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.78
Denim
#1560BD
ΔE00 5.01
Cobalt
#0047AB
ΔE00 5.08
Azul
#1D5DEC
ΔE00 6.00
Blue Blue
#2242C7
ΔE00 6.03
Warm Blue
#4B57DB
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2154C2 #C28F21
analogous
#21A5C2 #2154C2 #3F21C2
triadic
#2154C2 #C22154 #54C221
tetradic
#2154C2 #C221A5 #C28F21 #21C23F
square
#2154C2 #C221A5 #C28F21 #21C23F
split-complementary
#2154C2 #C23F21 #A5C221
monochromatic
#0F2759 #183D8E #2154C2 #4173DF #769AE8
Accessibility & contrast
On white
6.75
#2154C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.11
#2154C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2154C2
6.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2154C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2154C2 | 1.00 | 6.75 | 3.11 | 6.75 |
| #FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2154c2; /* rgb */ color: rgb(33, 84, 194); /* oklch */ color: oklch(48.1% 0.181 262.8);
Tailwind
colors: {
custom: {
50: '#7983d5',
500: '#2154c2',
950: '#000000',
},
}SCSS
$custom: #2154c2; $custom-light: #7983d5; $custom-dark: #000000;
JSON
{
"hex": "#2154c2",
"rgb": {
"r": 33,
"g": 84,
"b": 194
},
"hsl": {
"h": 220.994,
"s": 70.925,
"l": 44.51
},
"oklch": {
"l": 0.48144,
"c": 0.18104,
"h": 262.8
},
"luminance": 0.10559
}Semantic roles & 50–950 ramp
primary
#2154C2
secondary
#CFB170
accent
#B53AEE
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83