#25137F#25137F
#25137F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.165 H 277.9°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).
Color values
| HEX | #25137F |
|---|---|
| RGB | rgb(37, 19, 127) |
| HSL | hsl(250, 74%, 29%) |
| HSV | hsv(250, 85%, 50%) |
| CMYK | cmyk(70.9%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(17.42, 41.10, -56.60) |
| CIE-LCH | lch(17.42, 69.95, 305.98°) |
| OKLab | oklab(30.66% 0.0228 -0.1635) |
| OKLCH | oklch(30.66% 0.165 277.9) |
| XYZ | xyz(4.8253, 2.3909, 20.2818) |
| Luminance | 0.0239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.41
Royal
#0C1793
ΔE00 3.42
Indigo (survey)
#380282
ΔE00 3.48
Navy
#000080
ΔE00 3.73
Darkblue
#00008B
ΔE00 3.79
Deep Blue
#040273
ΔE00 4.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#25137F #6D7F13
analogous
#13377F #25137F #5B137F
triadic
#25137F #7F2513 #137F25
tetradic
#25137F #7F1337 #6D7F13 #137F5B
square
#25137F #7F1337 #6D7F13 #137F5B
split-complementary
#25137F #7F5B13 #377F13
monochromatic
#08041B #150B4A #25137F #351BB4 #4B2DE0
Accessibility & contrast
On white
14.21
#25137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#25137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #25137F
14.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##25137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##25137F | 1.00 | 14.21 | 1.48 | 14.21 |
| #FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #25137f; /* rgb */ color: rgb(37, 19, 127); /* oklch */ color: oklch(30.7% 0.165 277.9);
Tailwind
colors: {
custom: {
50: '#6f55a5',
500: '#25137f',
950: '#000000',
},
}SCSS
$custom: #25137f; $custom-light: #6f55a5; $custom-dark: #000000;
JSON
{
"hex": "#25137f",
"rgb": {
"r": 37,
"g": 19,
"b": 127
},
"hsl": {
"h": 250,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.3066,
"c": 0.1651,
"h": 277.9
},
"luminance": 0.02391
}Semantic roles & 50–950 ramp
primary
#25137F
secondary
#A0B439
accent
#F137D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F