#254CA1#254CA1
#254CA1 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.145 H 263.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).
Color values
| HEX | #254CA1 |
|---|---|
| RGB | rgb(37, 76, 161) |
| HSL | hsl(221, 63%, 39%) |
| HSV | hsv(221, 77%, 63%) |
| CMYK | cmyk(77%, 52.8%, 0%, 36.9%) |
| CIE-LAB | lab(34.26, 17.64, -50.04) |
| CIE-LCH | lch(34.26, 53.06, 289.42°) |
| OKLab | oklab(43.94% -0.0172 -0.1441) |
| OKLCH | oklch(43.94% 0.145 263.2) |
| XYZ | xyz(9.7781, 8.1343, 34.7660) |
| Luminance | 0.0814 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.37
Cobalt (survey)
#1E488F
ΔE00 2.82
Sapphire
#0F52BA
ΔE00 3.69
Dusk Blue
#26538D
ΔE00 4.23
Denim Blue
#3B5B92
ΔE00 5.51
Darkish Blue
#014182
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254CA1 #A17A25
analogous
#258AA1 #254CA1 #3C25A1
triadic
#254CA1 #A1254C #4CA125
tetradic
#254CA1 #A1258A #A17A25 #25A13C
square
#254CA1 #A1258A #A17A25 #25A13C
split-complementary
#254CA1 #A13C25 #8AA125
monochromatic
#0E1D3D #1A356F #254CA1 #3364D0 #658ADC
Accessibility & contrast
On white
7.99
#254CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#254CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254CA1
7.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254CA1 | 1.00 | 7.99 | 2.63 | 7.99 |
| #FFFFFF | 7.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1257A4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #254ca1; /* rgb */ color: rgb(37, 76, 161); /* oklch */ color: oklch(43.9% 0.145 263.2);
Tailwind
colors: {
custom: {
50: '#727dbd',
500: '#254ca1',
950: '#000000',
},
}SCSS
$custom: #254ca1; $custom-light: #727dbd; $custom-dark: #000000;
JSON
{
"hex": "#254ca1",
"rgb": {
"r": 37,
"g": 76,
"b": 161
},
"hsl": {
"h": 221.129,
"s": 62.626,
"l": 38.824
},
"oklch": {
"l": 0.43942,
"c": 0.1451,
"h": 263.2
},
"luminance": 0.08135
}Semantic roles & 50–950 ramp
primary
#254CA1
secondary
#C1A361
accent
#B242E6
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81