#254AB2#254AB2
#254AB2 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.171 H 265.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #254AB2 |
|---|---|
| RGB | rgb(37, 74, 178) |
| HSL | hsl(224, 66%, 42%) |
| HSV | hsv(224, 79%, 70%) |
| CMYK | cmyk(79.2%, 58.4%, 0%, 30.2%) |
| CIE-LAB | lab(35.01, 25.58, -58.97) |
| CIE-LCH | lch(35.01, 64.28, 293.45°) |
| OKLab | oklab(44.92% -0.0145 -0.1703) |
| OKLCH | oklch(44.92% 0.171 265.1) |
| XYZ | xyz(11.2448, 8.5039, 43.1596) |
| Luminance | 0.0851 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.49
Sapphire
#0F52BA
ΔE00 3.42
Blue Blue
#2242C7
ΔE00 4.09
Cobalt (survey)
#1E488F
ΔE00 5.24
Sapphire (survey)
#2138AB
ΔE00 5.62
Blue (survey)
#0343DF
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254AB2 #B28D25
analogous
#2591B2 #254AB2 #4625B2
triadic
#254AB2 #B2254A #4AB225
tetradic
#254AB2 #B22591 #B28D25 #25B246
square
#254AB2 #B22591 #B28D25 #25B246
split-complementary
#254AB2 #B24625 #91B225
monochromatic
#10204D #1A357F #254AB2 #3D66D7 #708EE1
Accessibility & contrast
On white
7.77
#254AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#254AB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254AB2
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254AB2 | 1.00 | 7.77 | 2.70 | 7.77 |
| #FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #254ab2; /* rgb */ color: rgb(37, 74, 178); /* oklch */ color: oklch(44.9% 0.171 265.1);
Tailwind
colors: {
custom: {
50: '#777cca',
500: '#254ab2',
950: '#000000',
},
}SCSS
$custom: #254ab2; $custom-light: #777cca; $custom-dark: #000000;
JSON
{
"hex": "#254ab2",
"rgb": {
"r": 37,
"g": 74,
"b": 178
},
"hsl": {
"h": 224.255,
"s": 65.581,
"l": 42.157
},
"oklch": {
"l": 0.44918,
"c": 0.17096,
"h": 265.1
},
"luminance": 0.08505
}Semantic roles & 50–950 ramp
primary
#254AB2
secondary
#C8B06B
accent
#BC3FE9
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82