#254CB3#254CB3
#254CB3 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.170 H 264.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).
Color values
| HEX | #254CB3 |
|---|---|
| RGB | rgb(37, 76, 179) |
| HSL | hsl(224, 66%, 42%) |
| HSV | hsv(224, 79%, 70%) |
| CMYK | cmyk(79.3%, 57.5%, 0%, 29.8%) |
| CIE-LAB | lab(35.63, 24.64, -58.56) |
| CIE-LCH | lch(35.63, 63.53, 292.82°) |
| OKLab | oklab(45.41% -0.0158 -0.1691) |
| OKLCH | oklch(45.41% 0.17 264.7) |
| XYZ | xyz(11.4812, 8.8155, 43.7355) |
| Luminance | 0.0882 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.64
Sapphire
#0F52BA
ΔE00 2.80
Blue Blue
#2242C7
ΔE00 4.50
Cobalt (survey)
#1E488F
ΔE00 5.28
Dusk Blue
#26538D
ΔE00 6.23
Blue (survey)
#0343DF
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254CB3 #B38C25
analogous
#2593B3 #254CB3 #4525B3
triadic
#254CB3 #B3254C #4CB325
tetradic
#254CB3 #B32593 #B38C25 #25B345
square
#254CB3 #B32593 #B38C25 #25B345
split-complementary
#254CB3 #B34525 #93B325
monochromatic
#10214E #1B3680 #254CB3 #3E68D7 #7190E2
Accessibility & contrast
On white
7.60
#254CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#254CB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254CB3
7.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254CB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254CB3 | 1.00 | 7.60 | 2.76 | 7.60 |
| #FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #254cb3; /* rgb */ color: rgb(37, 76, 179); /* oklch */ color: oklch(45.4% 0.170 264.7);
Tailwind
colors: {
custom: {
50: '#777dcb',
500: '#254cb3',
950: '#000000',
},
}SCSS
$custom: #254cb3; $custom-light: #777dcb; $custom-dark: #000000;
JSON
{
"hex": "#254cb3",
"rgb": {
"r": 37,
"g": 76,
"b": 179
},
"hsl": {
"h": 223.521,
"s": 65.741,
"l": 42.353
},
"oklch": {
"l": 0.45405,
"c": 0.16983,
"h": 264.7
},
"luminance": 0.08817
}Semantic roles & 50–950 ramp
primary
#254CB3
secondary
#C8AF6B
accent
#BA3FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82