#254A8F#254A8F
#254A8F is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.1% C 0.122 H 261.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).
Color values
| HEX | #254A8F |
|---|---|
| RGB | rgb(37, 74, 143) |
| HSL | hsl(219, 59%, 35%) |
| HSV | hsv(219, 74%, 56%) |
| CMYK | cmyk(74.1%, 48.3%, 0%, 43.9%) |
| CIE-LAB | lab(32.42, 11.93, -42.10) |
| CIE-LCH | lch(32.42, 43.75, 285.83°) |
| OKLab | oklab(42.13% -0.018 -0.1207) |
| OKLCH | oklch(42.13% 0.122 261.5) |
| XYZ | xyz(8.1679, 7.2732, 26.9547) |
| Luminance | 0.0727 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 0.83
Dusk Blue
#26538D
ΔE00 3.47
Darkish Blue
#014182
ΔE00 3.89
Cobalt
#0047AB
ΔE00 3.97
Twilight Blue
#0A437A
ΔE00 4.33
Light Navy
#155084
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254A8F #8F6A25
analogous
#257F8F #254A8F #35258F
triadic
#254A8F #8F254A #4A8F25
tetradic
#254A8F #8F257F #8F6A25 #258F35
square
#254A8F #8F257F #8F6A25 #258F35
split-complementary
#254A8F #8F3525 #7F8F25
monochromatic
#0C182E #18315E #254A8F #3263C0 #5A85D4
Accessibility & contrast
On white
8.55
#254A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#254A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254A8F
8.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254A8F | 1.00 | 8.55 | 2.45 | 8.55 |
| #FFFFFF | 8.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#255192
Deuteranopia (green-blind)
#0A488E
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #254a8f; /* rgb */ color: rgb(37, 74, 143); /* oklch */ color: oklch(42.1% 0.122 261.5);
Tailwind
colors: {
custom: {
50: '#6e7cb0',
500: '#254a8f',
950: '#000000',
},
}SCSS
$custom: #254a8f; $custom-light: #6e7cb0; $custom-dark: #000000;
JSON
{
"hex": "#254a8f",
"rgb": {
"r": 37,
"g": 74,
"b": 143
},
"hsl": {
"h": 219.057,
"s": 58.889,
"l": 35.294
},
"oklch": {
"l": 0.42134,
"c": 0.12205,
"h": 261.5
},
"luminance": 0.07274
}Semantic roles & 50–950 ramp
primary
#254A8F
secondary
#B99757
accent
#AC46E2
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F