#254C8B#254C8B
#254C8B is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.3% C 0.114 H 259.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).
Color values
| HEX | #254C8B |
|---|---|
| RGB | rgb(37, 76, 139) |
| HSL | hsl(217, 58%, 35%) |
| HSV | hsv(217, 73%, 55%) |
| CMYK | cmyk(73.4%, 45.3%, 0%, 45.5%) |
| CIE-LAB | lab(32.76, 9.02, -39.11) |
| CIE-LCH | lch(32.76, 40.13, 282.99°) |
| OKLab | oklab(42.31% -0.0206 -0.1119) |
| OKLCH | oklch(42.31% 0.114 259.6) |
| XYZ | xyz(8.0059, 7.4254, 25.4324) |
| Luminance | 0.0743 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.49
Dusk Blue
#26538D
ΔE00 2.57
Light Navy
#155084
ΔE00 3.78
Darkish Blue
#014182
ΔE00 3.94
Twilight Blue
#0A437A
ΔE00 4.03
Cobalt
#0047AB
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254C8B #8B6425
analogous
#257F8B #254C8B #31258B
triadic
#254C8B #8B254C #4C8B25
tetradic
#254C8B #8B257F #8B6425 #258B31
square
#254C8B #8B257F #8B6425 #258B31
split-complementary
#254C8B #8B3125 #7F8B25
monochromatic
#0B172A #18325B #254C8B #3266BB #5887D3
Accessibility & contrast
On white
8.45
#254C8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#254C8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254C8B
8.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254C8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254C8B | 1.00 | 8.45 | 2.49 | 8.45 |
| #FFFFFF | 8.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D528D
Deuteranopia (green-blind)
#1A498A
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #254c8b; /* rgb */ color: rgb(37, 76, 139); /* oklch */ color: oklch(42.3% 0.114 259.6);
Tailwind
colors: {
custom: {
50: '#6d7dad',
500: '#254c8b',
950: '#000000',
},
}SCSS
$custom: #254c8b; $custom-light: #6d7dad; $custom-dark: #000000;
JSON
{
"hex": "#254c8b",
"rgb": {
"r": 37,
"g": 76,
"b": 139
},
"hsl": {
"h": 217.059,
"s": 57.955,
"l": 34.51
},
"oklch": {
"l": 0.42308,
"c": 0.11378,
"h": 259.6
},
"luminance": 0.07426
}Semantic roles & 50–950 ramp
primary
#254C8B
secondary
#B79155
accent
#A647E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F