#254AA1#254AA1
#254AA1 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.5% C 0.148 H 263.9°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #254AA1 |
|---|---|
| RGB | rgb(37, 74, 161) |
| HSL | hsl(222, 63%, 39%) |
| HSV | hsv(222, 77%, 63%) |
| CMYK | cmyk(77%, 54%, 0%, 36.9%) |
| CIE-LAB | lab(33.70, 18.99, -50.96) |
| CIE-LCH | lch(33.70, 54.38, 290.44°) |
| OKLab | oklab(43.51% -0.0156 -0.1468) |
| OKLCH | oklch(43.51% 0.148 263.9) |
| XYZ | xyz(9.6425, 7.8630, 34.7208) |
| Luminance | 0.0786 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.12
Cobalt (survey)
#1E488F
ΔE00 2.85
Sapphire
#0F52BA
ΔE00 4.12
Dusk Blue
#26538D
ΔE00 4.82
Darkish Blue
#014182
ΔE00 5.71
Denim Blue
#3B5B92
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254AA1 #A17C25
analogous
#2588A1 #254AA1 #3E25A1
triadic
#254AA1 #A1254A #4AA125
tetradic
#254AA1 #A12588 #A17C25 #25A13E
square
#254AA1 #A12588 #A17C25 #25A13E
split-complementary
#254AA1 #A13E25 #88A125
monochromatic
#0E1C3D #1A336F #254AA1 #3362D0 #6588DC
Accessibility & contrast
On white
8.16
#254AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#254AA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254AA1
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254AA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254AA1 | 1.00 | 8.16 | 2.57 | 8.16 |
| #FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0655A4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #254aa1; /* rgb */ color: rgb(37, 74, 161); /* oklch */ color: oklch(43.5% 0.148 263.9);
Tailwind
colors: {
custom: {
50: '#727cbd',
500: '#254aa1',
950: '#000000',
},
}SCSS
$custom: #254aa1; $custom-light: #727cbd; $custom-dark: #000000;
JSON
{
"hex": "#254aa1",
"rgb": {
"r": 37,
"g": 74,
"b": 161
},
"hsl": {
"h": 222.097,
"s": 62.626,
"l": 38.824
},
"oklch": {
"l": 0.43513,
"c": 0.14763,
"h": 263.9
},
"luminance": 0.07864
}Semantic roles & 50–950 ramp
primary
#254AA1
secondary
#C1A461
accent
#B542E6
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81