#254F98#254F98
#254F98 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 43.9% C 0.129 H 260.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).
Color values
| HEX | #254F98 |
|---|---|
| RGB | rgb(37, 79, 152) |
| HSL | hsl(218, 61%, 37%) |
| HSV | hsv(218, 76%, 60%) |
| CMYK | cmyk(75.7%, 48%, 0%, 40.4%) |
| CIE-LAB | lab(34.50, 12.10, -44.23) |
| CIE-LCH | lch(34.50, 45.85, 285.30°) |
| OKLab | oklab(43.93% -0.021 -0.1269) |
| OKLCH | oklch(43.93% 0.129 260.6) |
| XYZ | xyz(9.2244, 8.2513, 30.8062) |
| Luminance | 0.0825 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusk Blue
#26538D
ΔE00 2.40
Cobalt (survey)
#1E488F
ΔE00 2.42
Cobalt
#0047AB
ΔE00 3.76
Sapphire
#0F52BA
ΔE00 4.28
Denim Blue
#3B5B92
ΔE00 4.31
Light Navy
#155084
ΔE00 4.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254F98 #986E25
analogous
#258998 #254F98 #352598
triadic
#254F98 #98254F #4F9825
tetradic
#254F98 #982589 #986E25 #259835
square
#254F98 #982589 #986E25 #259835
split-complementary
#254F98 #983525 #899825
monochromatic
#0D1C36 #193567 #254F98 #3169C9 #5F8BD8
Accessibility & contrast
On white
7.92
#254F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.65
#254F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254F98
7.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254F98 | 1.00 | 7.92 | 2.65 | 7.92 |
| #FFFFFF | 7.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28579B
Deuteranopia (green-blind)
#084C97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #254f98; /* rgb */ color: rgb(37, 79, 152); /* oklch */ color: oklch(43.9% 0.129 260.6);
Tailwind
colors: {
custom: {
50: '#707fb7',
500: '#254f98',
950: '#000000',
},
}SCSS
$custom: #254f98; $custom-light: #707fb7; $custom-dark: #000000;
JSON
{
"hex": "#254f98",
"rgb": {
"r": 37,
"g": 79,
"b": 152
},
"hsl": {
"h": 218.087,
"s": 60.847,
"l": 37.059
},
"oklch": {
"l": 0.43925,
"c": 0.12863,
"h": 260.6
},
"luminance": 0.08252
}Semantic roles & 50–950 ramp
primary
#254F98
secondary
#BD9A5C
accent
#A944E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80