#254AB3#254AB3
#254AB3 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.0% C 0.172 H 265.2°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #254AB3 |
|---|---|
| RGB | rgb(37, 74, 179) |
| HSL | hsl(224, 66%, 42%) |
| HSV | hsv(224, 79%, 70%) |
| CMYK | cmyk(79.3%, 58.7%, 0%, 29.8%) |
| CIE-LAB | lab(35.09, 25.97, -59.43) |
| CIE-LCH | lch(35.09, 64.85, 293.60°) |
| OKLab | oklab(45% -0.0145 -0.1717) |
| OKLCH | oklch(45% 0.172 265.2) |
| XYZ | xyz(11.3455, 8.5442, 43.6903) |
| Luminance | 0.0855 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.59
Sapphire
#0F52BA
ΔE00 3.42
Blue Blue
#2242C7
ΔE00 3.97
Cobalt (survey)
#1E488F
ΔE00 5.38
Sapphire (survey)
#2138AB
ΔE00 5.62
Blue (survey)
#0343DF
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254AB3 #B38E25
analogous
#2591B3 #254AB3 #4725B3
triadic
#254AB3 #B3254A #4AB325
tetradic
#254AB3 #B32591 #B38E25 #25B347
square
#254AB3 #B32591 #B38E25 #25B347
split-complementary
#254AB3 #B34725 #91B325
monochromatic
#10204E #1B3580 #254AB3 #3E66D7 #718EE2
Accessibility & contrast
On white
7.75
#254AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#254AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254AB3
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254AB3 | 1.00 | 7.75 | 2.71 | 7.75 |
| #FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #254ab3; /* rgb */ color: rgb(37, 74, 179); /* oklch */ color: oklch(45.0% 0.172 265.2);
Tailwind
colors: {
custom: {
50: '#777ccb',
500: '#254ab3',
950: '#000000',
},
}SCSS
$custom: #254ab3; $custom-light: #777ccb; $custom-dark: #000000;
JSON
{
"hex": "#254ab3",
"rgb": {
"r": 37,
"g": 74,
"b": 179
},
"hsl": {
"h": 224.366,
"s": 65.741,
"l": 42.353
},
"oklch": {
"l": 0.45003,
"c": 0.1723,
"h": 265.2
},
"luminance": 0.08546
}Semantic roles & 50–950 ramp
primary
#254AB3
secondary
#C8B06B
accent
#BD3FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82