#252971#252971
#252971 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.122 H 274.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).
Color values
| HEX | #252971 |
|---|---|
| RGB | rgb(37, 41, 113) |
| HSL | hsl(237, 51%, 29%) |
| HSV | hsv(237, 67%, 44%) |
| CMYK | cmyk(67.3%, 63.7%, 0%, 55.7%) |
| CIE-LAB | lab(20.72, 23.10, -42.22) |
| CIE-LCH | lch(20.72, 48.12, 298.68°) |
| OKLab | oklab(32.58% 0.0104 -0.1216) |
| OKLCH | oklch(32.58% 0.122 274.9) |
| XYZ | xyz(4.5355, 3.1711, 15.9926) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.68
Marine
#042E60
ΔE00 6.94
Darkslateblue
#483D8B
ΔE00 7.68
Royal
#0C1793
ΔE00 7.77
Navy Blue
#1B2A4A
ΔE00 8.41
Darkblue (survey)
#030764
ΔE00 8.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#252971 #716D25
analogous
#254F71 #252971 #472571
triadic
#252971 #712529 #297125
tetradic
#252971 #71254F #716D25 #257147
square
#252971 #71254F #716D25 #257147
split-complementary
#252971 #714725 #4F7125
monochromatic
#080817 #161843 #252971 #343A9F #4C52C4
Accessibility & contrast
On white
12.85
#252971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#252971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #252971
12.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##252971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##252971 | 1.00 | 12.85 | 1.63 | 12.85 |
| #FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #252971; /* rgb */ color: rgb(37, 41, 113); /* oklch */ color: oklch(32.6% 0.122 274.9);
Tailwind
colors: {
custom: {
50: '#69629a',
500: '#252971',
950: '#000000',
},
}SCSS
$custom: #252971; $custom-light: #69629a; $custom-dark: #000000;
JSON
{
"hex": "#252971",
"rgb": {
"r": 37,
"g": 41,
"b": 113
},
"hsl": {
"h": 236.842,
"s": 50.667,
"l": 29.412
},
"oklch": {
"l": 0.32581,
"c": 0.12204,
"h": 274.9
},
"luminance": 0.03171
}Semantic roles & 50–950 ramp
primary
#252971
secondary
#A49F4E
accent
#D34EDA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E