#31149F#31149F
#31149F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.199 H 278.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #31149F |
|---|---|
| RGB | rgb(49, 20, 159) |
| HSL | hsl(253, 78%, 35%) |
| HSV | hsv(253, 87%, 62%) |
| CMYK | cmyk(69.2%, 87.4%, 0%, 37.6%) |
| CIE-LAB | lab(22.50, 51.08, -68.09) |
| CIE-LCH | lch(22.50, 85.12, 306.88°) |
| OKLab | oklab(35.53% 0.03 -0.1966) |
| OKLCH | oklch(35.53% 0.199 278.7) |
| XYZ | xyz(7.7728, 3.6558, 33.0902) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.82
Cobalt Blue
#030AA7
ΔE00 2.93
Ultramarine
#2000B1
ΔE00 2.95
Royal Blue (survey)
#0504AA
ΔE00 3.14
Royal
#0C1793
ΔE00 3.50
Indigo (survey)
#380282
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31149F #829F14
analogous
#143C9F #31149F #77149F
triadic
#31149F #9F3114 #149F31
tetradic
#31149F #9F143C #829F14 #149F77
square
#31149F #9F143C #829F14 #149F77
split-complementary
#31149F #9F7714 #3C9F14
monochromatic
#0F0632 #200D69 #31149F #421BD5 #6846E8
Accessibility & contrast
On white
12.13
#31149F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#31149F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31149F
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31149F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31149F | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #31149f; /* rgb */ color: rgb(49, 20, 159); /* oklch */ color: oklch(35.5% 0.199 278.7);
Tailwind
colors: {
custom: {
50: '#7b59bd',
500: '#31149f',
950: '#000000',
},
}SCSS
$custom: #31149f; $custom-light: #7b59bd; $custom-dark: #000000;
JSON
{
"hex": "#31149f",
"rgb": {
"r": 49,
"g": 20,
"b": 159
},
"hsl": {
"h": 252.518,
"s": 77.654,
"l": 35.098
},
"oklch": {
"l": 0.3553,
"c": 0.19885,
"h": 278.7
},
"luminance": 0.03656
}Semantic roles & 50–950 ramp
primary
#31149F
secondary
#ADC846
accent
#F434CC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981