#254D8F#254D8F
#254D8F is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.118 H 259.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).
Color values
| HEX | #254D8F |
|---|---|
| RGB | rgb(37, 77, 143) |
| HSL | hsl(217, 59%, 35%) |
| HSV | hsv(217, 74%, 56%) |
| CMYK | cmyk(74.1%, 46.2%, 0%, 43.9%) |
| CIE-LAB | lab(33.31, 9.91, -40.66) |
| CIE-LCH | lch(33.31, 41.85, 283.70°) |
| OKLab | oklab(42.82% -0.0208 -0.1164) |
| OKLCH | oklch(42.82% 0.118 259.9) |
| XYZ | xyz(8.3730, 7.6833, 27.0230) |
| Luminance | 0.0768 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.63
Dusk Blue
#26538D
ΔE00 2.35
Light Navy
#155084
ΔE00 3.85
Cobalt
#0047AB
ΔE00 4.31
Darkish Blue
#014182
ΔE00 4.34
Twilight Blue
#0A437A
ΔE00 4.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254D8F #8F6725
analogous
#25828F #254D8F #32258F
triadic
#254D8F #8F254D #4D8F25
tetradic
#254D8F #8F2582 #8F6725 #258F32
square
#254D8F #8F2582 #8F6725 #258F32
split-complementary
#254D8F #8F3225 #828F25
monochromatic
#0C192E #18335E #254D8F #3267C0 #5A88D4
Accessibility & contrast
On white
8.28
#254D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#254D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254D8F
8.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254D8F | 1.00 | 8.28 | 2.54 | 8.28 |
| #FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B5492
Deuteranopia (green-blind)
#164A8E
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #254d8f; /* rgb */ color: rgb(37, 77, 143); /* oklch */ color: oklch(42.8% 0.118 259.9);
Tailwind
colors: {
custom: {
50: '#6e7eb0',
500: '#254d8f',
950: '#000000',
},
}SCSS
$custom: #254d8f; $custom-light: #6e7eb0; $custom-dark: #000000;
JSON
{
"hex": "#254d8f",
"rgb": {
"r": 37,
"g": 77,
"b": 143
},
"hsl": {
"h": 217.358,
"s": 58.889,
"l": 35.294
},
"oklch": {
"l": 0.42821,
"c": 0.11829,
"h": 259.9
},
"luminance": 0.07684
}Semantic roles & 50–950 ramp
primary
#254D8F
secondary
#B99457
accent
#A746E2
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F