#254798#254798
#254798 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.2% C 0.139 H 264.2°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).
Color values
| HEX | #254798 |
|---|---|
| RGB | rgb(37, 71, 152) |
| HSL | hsl(222, 61%, 37%) |
| HSV | hsv(222, 76%, 60%) |
| CMYK | cmyk(75.7%, 53.3%, 0%, 40.4%) |
| CIE-LAB | lab(32.18, 17.50, -47.97) |
| CIE-LCH | lch(32.18, 51.06, 290.04°) |
| OKLab | oklab(42.15% -0.0141 -0.1381) |
| OKLCH | oklch(42.15% 0.139 264.2) |
| XYZ | xyz(8.6817, 7.1658, 30.6253) |
| Luminance | 0.0717 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.01
Cobalt
#0047AB
ΔE00 2.85
Darkish Blue
#014182
ΔE00 4.67
Dusk Blue
#26538D
ΔE00 5.06
Twilight Blue
#0A437A
ΔE00 5.51
Sapphire
#0F52BA
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254798 #987625
analogous
#258198 #254798 #3D2598
triadic
#254798 #982547 #479825
tetradic
#254798 #982581 #987625 #25983D
square
#254798 #982581 #987625 #25983D
split-complementary
#254798 #983D25 #819825
monochromatic
#0D1936 #193067 #254798 #315EC9 #5F83D8
Accessibility & contrast
On white
8.63
#254798 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#254798 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254798
8.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254798 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254798 | 1.00 | 8.63 | 2.43 | 8.63 |
| #FFFFFF | 8.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F519B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #254798; /* rgb */ color: rgb(37, 71, 152); /* oklch */ color: oklch(42.2% 0.139 264.2);
Tailwind
colors: {
custom: {
50: '#7079b7',
500: '#254798',
950: '#000000',
},
}SCSS
$custom: #254798; $custom-light: #7079b7; $custom-dark: #000000;
JSON
{
"hex": "#254798",
"rgb": {
"r": 37,
"g": 71,
"b": 152
},
"hsl": {
"h": 222.261,
"s": 60.847,
"l": 37.059
},
"oklch": {
"l": 0.42153,
"c": 0.13878,
"h": 264.2
},
"luminance": 0.07167
}Semantic roles & 50–950 ramp
primary
#254798
secondary
#BDA05C
accent
#B544E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80