#254CC6#254CC6
#254CC6 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.1% C 0.195 H 265.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #254CC6 |
|---|---|
| RGB | rgb(37, 76, 198) |
| HSL | hsl(225, 69%, 46%) |
| HSV | hsv(225, 81%, 78%) |
| CMYK | cmyk(81.3%, 61.6%, 0%, 22.4%) |
| CIE-LAB | lab(37.18, 31.87, -67.16) |
| CIE-LCH | lch(37.18, 74.34, 295.39°) |
| OKLab | oklab(47.05% -0.0153 -0.1943) |
| OKLCH | oklch(47.05% 0.195 265.5) |
| XYZ | xyz(13.5368, 9.6378, 54.5620) |
| Luminance | 0.0964 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.07
Sapphire
#0F52BA
ΔE00 3.83
Blue (survey)
#0343DF
ΔE00 3.94
Cobalt
#0047AB
ΔE00 4.77
Warm Blue
#4B57DB
ΔE00 5.90
Ocean Blue
#4F42B5
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254CC6 #C69F25
analogous
#259CC6 #254CC6 #4E25C6
triadic
#254CC6 #C6254C #4CC625
tetradic
#254CC6 #C6259C #C69F25 #25C64E
square
#254CC6 #C6259C #C69F25 #25C64E
split-complementary
#254CC6 #C64E25 #9CC625
monochromatic
#12245F #1B3892 #254CC6 #4B6EDD #7E98E7
Accessibility & contrast
On white
7.17
#254CC6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#254CC6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254CC6
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254CC6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254CC6 | 1.00 | 7.17 | 2.93 | 7.17 |
| #FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#0050C4
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #254cc6; /* rgb */ color: rgb(37, 76, 198); /* oklch */ color: oklch(47.1% 0.195 265.5);
Tailwind
colors: {
custom: {
50: '#7b7dd8',
500: '#254cc6',
950: '#000000',
},
}SCSS
$custom: #254cc6; $custom-light: #7b7dd8; $custom-dark: #000000;
JSON
{
"hex": "#254cc6",
"rgb": {
"r": 37,
"g": 76,
"b": 198
},
"hsl": {
"h": 225.466,
"s": 68.511,
"l": 46.078
},
"oklch": {
"l": 0.47053,
"c": 0.19494,
"h": 265.5
},
"luminance": 0.09639
}Semantic roles & 50–950 ramp
primary
#254CC6
secondary
#CFBA77
accent
#C13CEB
background
#F8F7FD
surface
#EFEEFB
border
#CAC9D4
text
#0B0915
muted
#7C7B83