#252F7F#252F7F
#252F7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.134 H 272.0°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).
Color values
| HEX | #252F7F |
|---|---|
| RGB | rgb(37, 47, 127) |
| HSL | hsl(233, 55%, 32%) |
| HSV | hsv(233, 71%, 50%) |
| CMYK | cmyk(70.9%, 63%, 0%, 50.2%) |
| CIE-LAB | lab(23.53, 24.26, -46.55) |
| CIE-LCH | lch(23.53, 52.49, 297.53°) |
| OKLab | oklab(35.04% 0.0047 -0.1342) |
| OKLCH | oklch(35.04% 0.134 272) |
| XYZ | xyz(5.6089, 3.9581, 20.5430) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 6.26
Darkslateblue
#483D8B
ΔE00 6.36
Sapphire (survey)
#2138AB
ΔE00 6.71
Blueberry
#464196
ΔE00 6.91
Marine
#042E60
ΔE00 7.09
Royal
#0C1793
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#252F7F #7F7525
analogous
#255C7F #252F7F #48257F
triadic
#252F7F #7F252F #2F7F25
tetradic
#252F7F #7F255C #7F7525 #257F48
square
#252F7F #7F255C #7F7525 #257F48
split-complementary
#252F7F #7F4825 #5C7F25
monochromatic
#090C20 #171D50 #252F7F #3341AE #525FCD
Accessibility & contrast
On white
11.72
#252F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#252F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #252F7F
11.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##252F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##252F7F | 1.00 | 11.72 | 1.79 | 11.72 |
| #FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #252f7f; /* rgb */ color: rgb(37, 47, 127); /* oklch */ color: oklch(35.0% 0.134 272.0);
Tailwind
colors: {
custom: {
50: '#6c67a5',
500: '#252f7f',
950: '#000000',
},
}SCSS
$custom: #252f7f; $custom-light: #6c67a5; $custom-dark: #000000;
JSON
{
"hex": "#252f7f",
"rgb": {
"r": 37,
"g": 47,
"b": 127
},
"hsl": {
"h": 233.333,
"s": 54.878,
"l": 32.157
},
"oklch": {
"l": 0.35039,
"c": 0.13433,
"h": 272
},
"luminance": 0.03959
}Semantic roles & 50–950 ramp
primary
#252F7F
secondary
#B1A64F
accent
#CE4ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F