#254F9F#254F9F
#254F9F is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.139 H 261.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).
Color values
| HEX | #254F9F |
|---|---|
| RGB | rgb(37, 79, 159) |
| HSL | hsl(219, 62%, 38%) |
| HSV | hsv(219, 77%, 62%) |
| CMYK | cmyk(76.7%, 50.3%, 0%, 37.6%) |
| CIE-LAB | lab(34.98, 14.84, -47.68) |
| CIE-LCH | lch(34.98, 49.94, 287.29°) |
| OKLab | oklab(44.44% -0.0199 -0.1371) |
| OKLCH | oklch(44.44% 0.139 261.7) |
| XYZ | xyz(9.8147, 8.4874, 33.9151) |
| Luminance | 0.0849 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.93
Cobalt
#0047AB
ΔE00 3.17
Dusk Blue
#26538D
ΔE00 3.19
Sapphire
#0F52BA
ΔE00 3.46
Denim Blue
#3B5B92
ΔE00 4.55
Light Navy
#155084
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254F9F #9F7525
analogous
#258C9F #254F9F #38259F
triadic
#254F9F #9F254F #4F9F25
tetradic
#254F9F #9F258C #9F7525 #259F38
square
#254F9F #9F258C #9F7525 #259F38
split-complementary
#254F9F #9F3825 #8C9F25
monochromatic
#0E1E3C #19366D #254F9F #3268CF #648DDB
Accessibility & contrast
On white
7.78
#254F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#254F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254F9F
7.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254F9F | 1.00 | 7.78 | 2.70 | 7.78 |
| #FFFFFF | 7.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2058A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #254f9f; /* rgb */ color: rgb(37, 79, 159); /* oklch */ color: oklch(44.4% 0.139 261.7);
Tailwind
colors: {
custom: {
50: '#727fbc',
500: '#254f9f',
950: '#000000',
},
}SCSS
$custom: #254f9f; $custom-light: #727fbc; $custom-dark: #000000;
JSON
{
"hex": "#254f9f",
"rgb": {
"r": 37,
"g": 79,
"b": 159
},
"hsl": {
"h": 219.344,
"s": 62.245,
"l": 38.431
},
"oklch": {
"l": 0.44443,
"c": 0.1385,
"h": 261.7
},
"luminance": 0.08488
}Semantic roles & 50–950 ramp
primary
#254F9F
secondary
#C09F5F
accent
#AD42E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81