#254FB5#254FB5
#254FB5 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.169 H 264.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #254FB5 |
|---|---|
| RGB | rgb(37, 79, 181) |
| HSL | hsl(223, 66%, 43%) |
| HSV | hsv(223, 80%, 71%) |
| CMYK | cmyk(79.6%, 56.4%, 0%, 29%) |
| CIE-LAB | lab(36.59, 23.41, -58.16) |
| CIE-LCH | lch(36.59, 62.70, 291.93°) |
| OKLab | oklab(46.18% -0.0177 -0.1679) |
| OKLCH | oklch(46.18% 0.169 264) |
| XYZ | xyz(11.8965, 9.3201, 44.8791) |
| Luminance | 0.0932 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.93
Cobalt
#0047AB
ΔE00 3.18
Blue Blue
#2242C7
ΔE00 5.16
Cobalt (survey)
#1E488F
ΔE00 5.56
Dusk Blue
#26538D
ΔE00 5.89
Denim Blue
#3B5B92
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#254FB5 #B58B25
analogous
#2597B5 #254FB5 #4325B5
triadic
#254FB5 #B5254F #4FB525
tetradic
#254FB5 #B52597 #B58B25 #25B543
square
#254FB5 #B52597 #B58B25 #25B543
split-complementary
#254FB5 #B54325 #97B525
monochromatic
#10234F #1B3982 #254FB5 #3F6CD8 #7293E2
Accessibility & contrast
On white
7.33
#254FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#254FB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #254FB5
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##254FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##254FB5 | 1.00 | 7.33 | 2.86 | 7.33 |
| #FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #254fb5; /* rgb */ color: rgb(37, 79, 181); /* oklch */ color: oklch(46.2% 0.169 264.0);
Tailwind
colors: {
custom: {
50: '#777fcc',
500: '#254fb5',
950: '#000000',
},
}SCSS
$custom: #254fb5; $custom-light: #777fcc; $custom-dark: #000000;
JSON
{
"hex": "#254fb5",
"rgb": {
"r": 37,
"g": 79,
"b": 181
},
"hsl": {
"h": 222.5,
"s": 66.055,
"l": 42.745
},
"oklch": {
"l": 0.46181,
"c": 0.16883,
"h": 264
},
"luminance": 0.09321
}Semantic roles & 50–950 ramp
primary
#254FB5
secondary
#C9AE6D
accent
#B73FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82