#254F8F#254F8F
#254F8F is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.116 H 258.7°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).
Color values
| HEX | #254F8F |
|---|---|
| RGB | rgb(37, 79, 143) |
| HSL | hsl(216, 59%, 35%) |
| HSV | hsv(216, 74%, 56%) |
| CMYK | cmyk(74.1%, 44.8%, 0%, 43.9%) |
| CIE-LAB | lab(33.92, 8.58, -39.70) |
| CIE-LCH | lch(33.92, 40.62, 282.19°) |
| OKLab | oklab(43.29% -0.0227 -0.1136) |
| OKLCH | oklch(43.29% 0.116 258.7) |
| XYZ | xyz(8.5151, 7.9675, 27.0704) |
| Luminance | 0.0797 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk Blue
#26538D
ΔE00 1.60
Cobalt (survey)
#1E488F
ΔE00 2.33
Light Navy
#155084
ΔE00 3.35
Light Navy Blue
#2E5A88
ΔE00 4.24
Denim Blue
#3B5B92
ΔE00 4.28
Cobalt
#0047AB
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254F8F #8F6525
analogous
#25848F #254F8F #30258F
triadic
#254F8F #8F254F #4F8F25
tetradic
#254F8F #8F2584 #8F6525 #258F30
square
#254F8F #8F2584 #8F6525 #258F30
split-complementary
#254F8F #8F3025 #848F25
monochromatic
#0C192E #18345E #254F8F #326AC0 #5A8BD4
Accessibility & contrast
On white
8.10
#254F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#254F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254F8F
8.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254F8F | 1.00 | 8.10 | 2.59 | 8.10 |
| #FFFFFF | 8.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F5591
Deuteranopia (green-blind)
#1C4B8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #254f8f; /* rgb */ color: rgb(37, 79, 143); /* oklch */ color: oklch(43.3% 0.116 258.7);
Tailwind
colors: {
custom: {
50: '#6e7fb0',
500: '#254f8f',
950: '#000000',
},
}SCSS
$custom: #254f8f; $custom-light: #6e7fb0; $custom-dark: #000000;
JSON
{
"hex": "#254f8f",
"rgb": {
"r": 37,
"g": 79,
"b": 143
},
"hsl": {
"h": 216.226,
"s": 58.889,
"l": 35.294
},
"oklch": {
"l": 0.43285,
"c": 0.11582,
"h": 258.7
},
"luminance": 0.07968
}Semantic roles & 50–950 ramp
primary
#254F8F
secondary
#B99257
accent
#A446E2
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F