#251581#251581
#251581 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.166 H 277.4°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).
Color values
| HEX | #251581 |
|---|---|
| RGB | rgb(37, 21, 129) |
| HSL | hsl(249, 72%, 29%) |
| HSV | hsv(249, 84%, 51%) |
| CMYK | cmyk(71.3%, 83.7%, 0%, 49.4%) |
| CIE-LAB | lab(17.98, 40.77, -56.94) |
| CIE-LCH | lch(17.98, 70.03, 305.61°) |
| OKLab | oklab(31.12% 0.0213 -0.1645) |
| OKLCH | oklch(31.12% 0.166 277.4) |
| XYZ | xyz(4.9923, 2.5142, 20.9868) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.09
Midnight Blue
#191970
ΔE00 3.43
Indigo (survey)
#380282
ΔE00 3.72
Darkblue
#00008B
ΔE00 3.94
Navy
#000080
ΔE00 4.02
Deep Blue
#040273
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#251581 #718115
analogous
#153B81 #251581 #5B1581
triadic
#251581 #812515 #158125
tetradic
#251581 #81153B #718115 #15815B
square
#251581 #81153B #718115 #15815B
split-complementary
#251581 #815B15 #3B8115
monochromatic
#08041A #160C4C #251581 #341EB6 #4C33DE
Accessibility & contrast
On white
13.97
#251581 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#251581 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #251581
13.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##251581 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##251581 | 1.00 | 13.97 | 1.50 | 13.97 |
| #FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #251581; /* rgb */ color: rgb(37, 21, 129); /* oklch */ color: oklch(31.1% 0.166 277.4);
Tailwind
colors: {
custom: {
50: '#6f56a7',
500: '#251581',
950: '#000000',
},
}SCSS
$custom: #251581; $custom-light: #6f56a7; $custom-dark: #000000;
JSON
{
"hex": "#251581",
"rgb": {
"r": 37,
"g": 21,
"b": 129
},
"hsl": {
"h": 248.889,
"s": 72,
"l": 29.412
},
"oklch": {
"l": 0.3112,
"c": 0.1659,
"h": 277.4
},
"luminance": 0.02515
}Semantic roles & 50–950 ramp
primary
#251581
secondary
#A4B63C
accent
#EF39D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F