#25127E#25127E
#25127E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.165 H 278.2°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).
Color values
| HEX | #25127E |
|---|---|
| RGB | rgb(37, 18, 126) |
| HSL | hsl(251, 75%, 28%) |
| HSV | hsv(251, 86%, 49%) |
| CMYK | cmyk(70.6%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(17.14, 41.24, -56.43) |
| CIE-LCH | lch(17.14, 69.89, 306.16°) |
| OKLab | oklab(30.43% 0.0236 -0.163) |
| OKLCH | oklch(30.43% 0.165 278.2) |
| XYZ | xyz(4.7439, 2.3319, 19.9347) |
| Luminance | 0.0233 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.38
Midnight Blue
#191970
ΔE00 3.43
Royal
#0C1793
ΔE00 3.60
Navy
#000080
ΔE00 3.61
Darkblue
#00008B
ΔE00 3.74
Deep Blue
#040273
ΔE00 3.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#25127E #6B7E12
analogous
#12357E #25127E #5B127E
triadic
#25127E #7E2512 #127E25
tetradic
#25127E #7E1235 #6B7E12 #127E5B
square
#25127E #7E1235 #6B7E12 #127E5B
split-complementary
#25127E #7E5B12 #357E12
monochromatic
#08041B #150A48 #25127E #351AB4 #4A2AE1
Accessibility & contrast
On white
14.32
#25127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#25127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #25127E
14.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##25127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##25127E | 1.00 | 14.32 | 1.47 | 14.32 |
| #FFFFFF | 14.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #25127e; /* rgb */ color: rgb(37, 18, 126); /* oklch */ color: oklch(30.4% 0.165 278.2);
Tailwind
colors: {
custom: {
50: '#6f55a5',
500: '#25127e',
950: '#000000',
},
}SCSS
$custom: #25127e; $custom-light: #6f55a5; $custom-dark: #000000;
JSON
{
"hex": "#25127e",
"rgb": {
"r": 37,
"g": 18,
"b": 126
},
"hsl": {
"h": 250.556,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.30433,
"c": 0.16468,
"h": 278.2
},
"luminance": 0.02332
}Semantic roles & 50–950 ramp
primary
#25127E
secondary
#9EB438
accent
#F236D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F