#254D9D#254D9D
#254D9D is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.138 H 262.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).
Color values
| HEX | #254D9D |
|---|---|
| RGB | rgb(37, 77, 157) |
| HSL | hsl(220, 62%, 38%) |
| HSV | hsv(220, 76%, 62%) |
| CMYK | cmyk(76.4%, 51%, 0%, 38.4%) |
| CIE-LAB | lab(34.26, 15.40, -47.63) |
| CIE-LCH | lch(34.26, 50.06, 287.92°) |
| OKLab | oklab(43.85% -0.0185 -0.137) |
| OKLCH | oklch(43.85% 0.138 262.3) |
| XYZ | xyz(9.5004, 8.1343, 32.9611) |
| Luminance | 0.0814 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.41
Cobalt
#0047AB
ΔE00 2.87
Dusk Blue
#26538D
ΔE00 3.52
Sapphire
#0F52BA
ΔE00 3.92
Denim Blue
#3B5B92
ΔE00 5.03
Light Navy
#155084
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254D9D #9D7525
analogous
#25899D #254D9D #39259D
triadic
#254D9D #9D254D #4D9D25
tetradic
#254D9D #9D2589 #9D7525 #259D39
square
#254D9D #9D2589 #9D7525 #259D39
split-complementary
#254D9D #9D3925 #899D25
monochromatic
#0E1C3A #19356B #254D9D #3165CE #628ADA
Accessibility & contrast
On white
7.99
#254D9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#254D9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254D9D
7.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254D9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254D9D | 1.00 | 7.99 | 2.63 | 7.99 |
| #FFFFFF | 7.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C56A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #254d9d; /* rgb */ color: rgb(37, 77, 157); /* oklch */ color: oklch(43.9% 0.138 262.3);
Tailwind
colors: {
custom: {
50: '#717eba',
500: '#254d9d',
950: '#000000',
},
}SCSS
$custom: #254d9d; $custom-light: #717eba; $custom-dark: #000000;
JSON
{
"hex": "#254d9d",
"rgb": {
"r": 37,
"g": 77,
"b": 157
},
"hsl": {
"h": 220,
"s": 61.856,
"l": 38.039
},
"oklch": {
"l": 0.43851,
"c": 0.13821,
"h": 262.3
},
"luminance": 0.08135
}Semantic roles & 50–950 ramp
primary
#254D9D
secondary
#BF9F5E
accent
#AF43E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81