#254C8A#254C8A
#254C8A is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.112 H 259.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #254C8A |
|---|---|
| RGB | rgb(37, 76, 138) |
| HSL | hsl(217, 58%, 34%) |
| HSV | hsv(217, 73%, 54%) |
| CMYK | cmyk(73.2%, 44.9%, 0%, 45.9%) |
| CIE-LAB | lab(32.69, 8.63, -38.60) |
| CIE-LCH | lch(32.69, 39.55, 282.60°) |
| OKLab | oklab(42.24% -0.0208 -0.1104) |
| OKLCH | oklch(42.24% 0.112 259.3) |
| XYZ | xyz(7.9332, 7.3963, 25.0494) |
| Luminance | 0.0740 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.57
Dusk Blue
#26538D
ΔE00 2.54
Light Navy
#155084
ΔE00 3.69
Darkish Blue
#014182
ΔE00 3.90
Twilight Blue
#0A437A
ΔE00 3.94
Cobalt
#0047AB
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254C8A #8A6325
analogous
#257F8A #254C8A #31258A
triadic
#254C8A #8A254C #4C8A25
tetradic
#254C8A #8A257F #8A6325 #258A31
square
#254C8A #8A257F #8A6325 #258A31
split-complementary
#254C8A #8A3125 #7F8A25
monochromatic
#0B1729 #18315A #254C8A #3267BA #5787D2
Accessibility & contrast
On white
8.47
#254C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#254C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254C8A
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254C8A | 1.00 | 8.47 | 2.48 | 8.47 |
| #FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E528C
Deuteranopia (green-blind)
#1B4989
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #254c8a; /* rgb */ color: rgb(37, 76, 138); /* oklch */ color: oklch(42.2% 0.112 259.3);
Tailwind
colors: {
custom: {
50: '#6d7dac',
500: '#254c8a',
950: '#000000',
},
}SCSS
$custom: #254c8a; $custom-light: #6d7dac; $custom-dark: #000000;
JSON
{
"hex": "#254c8a",
"rgb": {
"r": 37,
"g": 76,
"b": 138
},
"hsl": {
"h": 216.832,
"s": 57.714,
"l": 34.314
},
"oklch": {
"l": 0.42238,
"c": 0.11234,
"h": 259.3
},
"luminance": 0.07397
}Semantic roles & 50–950 ramp
primary
#254C8A
secondary
#B79154
accent
#A547E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F