#254F97#254F97
#254F97 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.127 H 260.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).
Color values
| HEX | #254F97 |
|---|---|
| RGB | rgb(37, 79, 151) |
| HSL | hsl(218, 61%, 37%) |
| HSV | hsv(218, 75%, 59%) |
| CMYK | cmyk(75.5%, 47.7%, 0%, 40.8%) |
| CIE-LAB | lab(34.43, 11.71, -43.73) |
| CIE-LCH | lch(34.43, 45.27, 284.99°) |
| OKLab | oklab(43.85% -0.0212 -0.1254) |
| OKLCH | oklch(43.85% 0.127 260.4) |
| XYZ | xyz(9.1428, 8.2186, 30.3767) |
| Luminance | 0.0822 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk Blue
#26538D
ΔE00 2.29
Cobalt (survey)
#1E488F
ΔE00 2.37
Cobalt
#0047AB
ΔE00 3.86
Light Navy
#155084
ΔE00 4.21
Denim Blue
#3B5B92
ΔE00 4.29
Sapphire
#0F52BA
ΔE00 4.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254F97 #976D25
analogous
#258897 #254F97 #342597
triadic
#254F97 #97254F #4F9725
tetradic
#254F97 #972588 #976D25 #259734
square
#254F97 #972588 #976D25 #259734
split-complementary
#254F97 #973425 #889725
monochromatic
#0D1C35 #193566 #254F97 #3169C8 #5F8BD8
Accessibility & contrast
On white
7.94
#254F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#254F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254F97
7.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254F97 | 1.00 | 7.94 | 2.64 | 7.94 |
| #FFFFFF | 7.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#0C4C96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #254f97; /* rgb */ color: rgb(37, 79, 151); /* oklch */ color: oklch(43.9% 0.127 260.4);
Tailwind
colors: {
custom: {
50: '#707fb6',
500: '#254f97',
950: '#000000',
},
}SCSS
$custom: #254f97; $custom-light: #707fb6; $custom-dark: #000000;
JSON
{
"hex": "#254f97",
"rgb": {
"r": 37,
"g": 79,
"b": 151
},
"hsl": {
"h": 217.895,
"s": 60.638,
"l": 36.863
},
"oklch": {
"l": 0.43852,
"c": 0.12721,
"h": 260.4
},
"luminance": 0.0822
}Semantic roles & 50–950 ramp
primary
#254F97
secondary
#BD995B
accent
#A944E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80