#254C98#254C98
#254C98 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.132 H 262.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).
Color values
| HEX | #254C98 |
|---|---|
| RGB | rgb(37, 76, 152) |
| HSL | hsl(220, 61%, 37%) |
| HSV | hsv(220, 76%, 60%) |
| CMYK | cmyk(75.7%, 50%, 0%, 40.4%) |
| CIE-LAB | lab(33.62, 14.12, -45.64) |
| CIE-LCH | lch(33.62, 47.77, 287.19°) |
| OKLab | oklab(43.25% -0.0184 -0.1311) |
| OKLCH | oklch(43.25% 0.132 262) |
| XYZ | xyz(9.0129, 7.8282, 30.7357) |
| Luminance | 0.0783 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.75
Cobalt
#0047AB
ΔE00 3.17
Dusk Blue
#26538D
ΔE00 3.36
Sapphire
#0F52BA
ΔE00 4.60
Darkish Blue
#014182
ΔE00 4.87
Light Navy
#155084
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254C98 #987125
analogous
#258698 #254C98 #372598
triadic
#254C98 #98254C #4C9825
tetradic
#254C98 #982586 #987125 #259837
square
#254C98 #982586 #987125 #259837
split-complementary
#254C98 #983725 #869825
monochromatic
#0D1B36 #193367 #254C98 #3165C9 #5F88D8
Accessibility & contrast
On white
8.18
#254C98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#254C98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254C98
8.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254C98 | 1.00 | 8.18 | 2.57 | 8.18 |
| #FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #254c98; /* rgb */ color: rgb(37, 76, 152); /* oklch */ color: oklch(43.3% 0.132 262.0);
Tailwind
colors: {
custom: {
50: '#707db7',
500: '#254c98',
950: '#000000',
},
}SCSS
$custom: #254c98; $custom-light: #707db7; $custom-dark: #000000;
JSON
{
"hex": "#254c98",
"rgb": {
"r": 37,
"g": 76,
"b": 152
},
"hsl": {
"h": 219.652,
"s": 60.847,
"l": 37.059
},
"oklch": {
"l": 0.43252,
"c": 0.1324,
"h": 262
},
"luminance": 0.07829
}Semantic roles & 50–950 ramp
primary
#254C98
secondary
#BD9C5C
accent
#AE44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80