#25127F#25127F
#25127F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.166 H 278.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #25127F |
|---|---|
| RGB | rgb(37, 18, 127) |
| HSL | hsl(250, 75%, 28%) |
| HSV | hsv(250, 86%, 50%) |
| CMYK | cmyk(70.9%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(17.26, 41.55, -56.86) |
| CIE-LCH | lch(17.26, 70.43, 306.16°) |
| OKLab | oklab(30.55% 0.0233 -0.1642) |
| OKLCH | oklch(30.55% 0.166 278.1) |
| XYZ | xyz(4.8088, 2.3578, 20.2762) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.35
Royal
#0C1793
ΔE00 3.47
Midnight Blue
#191970
ΔE00 3.53
Navy
#000080
ΔE00 3.59
Darkblue
#00008B
ΔE00 3.66
Deep Blue
#040273
ΔE00 3.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#25127F #6C7F12
analogous
#12357F #25127F #5B127F
triadic
#25127F #7F2512 #127F25
tetradic
#25127F #7F1235 #6C7F12 #127F5B
square
#25127F #7F1235 #6C7F12 #127F5B
split-complementary
#25127F #7F5B12 #357F12
monochromatic
#08041B #150A49 #25127F #351AB5 #4A2BE1
Accessibility & contrast
On white
14.27
#25127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#25127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #25127F
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##25127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##25127F | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #25127f; /* rgb */ color: rgb(37, 18, 127); /* oklch */ color: oklch(30.6% 0.166 278.1);
Tailwind
colors: {
custom: {
50: '#6f55a5',
500: '#25127f',
950: '#000000',
},
}SCSS
$custom: #25127f; $custom-light: #6f55a5; $custom-dark: #000000;
JSON
{
"hex": "#25127f",
"rgb": {
"r": 37,
"g": 18,
"b": 127
},
"hsl": {
"h": 250.459,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.30553,
"c": 0.16588,
"h": 278.1
},
"luminance": 0.02358
}Semantic roles & 50–950 ramp
primary
#25127F
secondary
#9FB538
accent
#F236D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F