#254A8E#254A8E
#254A8E is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.1% C 0.121 H 261.3°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).
Color values
| HEX | #254A8E |
|---|---|
| RGB | rgb(37, 74, 142) |
| HSL | hsl(219, 59%, 35%) |
| HSV | hsv(219, 74%, 56%) |
| CMYK | cmyk(73.9%, 47.9%, 0%, 44.3%) |
| CIE-LAB | lab(32.35, 11.54, -41.59) |
| CIE-LCH | lch(32.35, 43.16, 285.51°) |
| OKLab | oklab(42.06% -0.0181 -0.1192) |
| OKLCH | oklch(42.06% 0.121 261.3) |
| XYZ | xyz(8.0925, 7.2430, 26.5575) |
| Luminance | 0.0724 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 0.83
Dusk Blue
#26538D
ΔE00 3.42
Darkish Blue
#014182
ΔE00 3.81
Cobalt
#0047AB
ΔE00 4.09
Twilight Blue
#0A437A
ΔE00 4.23
Light Navy
#155084
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254A8E #8E6925
analogous
#257E8E #254A8E #34258E
triadic
#254A8E #8E254A #4A8E25
tetradic
#254A8E #8E257E #8E6925 #258E34
square
#254A8E #8E257E #8E6925 #258E34
split-complementary
#254A8E #8E3425 #7E8E25
monochromatic
#0C172D #18315D #254A8E #3263BF #5A85D4
Accessibility & contrast
On white
8.58
#254A8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#254A8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254A8E
8.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254A8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254A8E | 1.00 | 8.58 | 2.45 | 8.58 |
| #FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#265191
Deuteranopia (green-blind)
#0D488D
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #254a8e; /* rgb */ color: rgb(37, 74, 142); /* oklch */ color: oklch(42.1% 0.121 261.3);
Tailwind
colors: {
custom: {
50: '#6e7caf',
500: '#254a8e',
950: '#000000',
},
}SCSS
$custom: #254a8e; $custom-light: #6e7caf; $custom-dark: #000000;
JSON
{
"hex": "#254a8e",
"rgb": {
"r": 37,
"g": 74,
"b": 142
},
"hsl": {
"h": 218.857,
"s": 58.659,
"l": 35.098
},
"oklch": {
"l": 0.42061,
"c": 0.12061,
"h": 261.3
},
"luminance": 0.07244
}Semantic roles & 50–950 ramp
primary
#254A8E
secondary
#B99656
accent
#AB46E2
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F