#254797#254797
#254797 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.137 H 264.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).
Color values
| HEX | #254797 |
|---|---|
| RGB | rgb(37, 71, 151) |
| HSL | hsl(222, 61%, 37%) |
| HSV | hsv(222, 75%, 59%) |
| CMYK | cmyk(75.5%, 53%, 0%, 40.8%) |
| CIE-LAB | lab(32.11, 17.11, -47.48) |
| CIE-LCH | lch(32.11, 50.47, 289.81°) |
| OKLab | oklab(42.07% -0.0142 -0.1366) |
| OKLCH | oklch(42.07% 0.137 264) |
| XYZ | xyz(8.6001, 7.1332, 30.1958) |
| Luminance | 0.0713 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.89
Cobalt
#0047AB
ΔE00 2.96
Darkish Blue
#014182
ΔE00 4.56
Dusk Blue
#26538D
ΔE00 5.00
Twilight Blue
#0A437A
ΔE00 5.39
Sapphire
#0F52BA
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254797 #977525
analogous
#258097 #254797 #3C2597
triadic
#254797 #972547 #479725
tetradic
#254797 #972580 #977525 #25973C
square
#254797 #972580 #977525 #25973C
split-complementary
#254797 #973C25 #809725
monochromatic
#0D1935 #193066 #254797 #315EC8 #5F83D8
Accessibility & contrast
On white
8.65
#254797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#254797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254797
8.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254797 | 1.00 | 8.65 | 2.43 | 8.65 |
| #FFFFFF | 8.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#11519A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #254797; /* rgb */ color: rgb(37, 71, 151); /* oklch */ color: oklch(42.1% 0.137 264.0);
Tailwind
colors: {
custom: {
50: '#7079b6',
500: '#254797',
950: '#000000',
},
}SCSS
$custom: #254797; $custom-light: #7079b6; $custom-dark: #000000;
JSON
{
"hex": "#254797",
"rgb": {
"r": 37,
"g": 71,
"b": 151
},
"hsl": {
"h": 222.105,
"s": 60.638,
"l": 36.863
},
"oklch": {
"l": 0.42074,
"c": 0.13736,
"h": 264
},
"luminance": 0.07134
}Semantic roles & 50–950 ramp
primary
#254797
secondary
#BDA05B
accent
#B444E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80