#311A9B#311A9B
#311A9B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.190 H 278.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).
Color values
| HEX | #311A9B |
|---|---|
| RGB | rgb(49, 26, 155) |
| HSL | hsl(251, 71%, 35%) |
| HSV | hsv(251, 83%, 61%) |
| CMYK | cmyk(68.4%, 83.2%, 0%, 39.2%) |
| CIE-LAB | lab(22.85, 47.47, -65.05) |
| CIE-LCH | lch(22.85, 80.53, 306.12°) |
| OKLab | oklab(35.64% 0.029 -0.1879) |
| OKLCH | oklch(35.64% 0.19 278.8) |
| XYZ | xyz(7.5505, 3.7577, 31.3314) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.19
Royal
#0C1793
ΔE00 3.22
Cobalt Blue
#030AA7
ΔE00 3.55
Ultramarine
#2000B1
ΔE00 3.90
Royal Blue (survey)
#0504AA
ΔE00 3.90
Indigo (survey)
#380282
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311A9B #849B1A
analogous
#1A439B #311A9B #721A9B
triadic
#311A9B #9B311A #1A9B31
tetradic
#311A9B #9B1A43 #849B1A #1A9B72
square
#311A9B #9B1A43 #849B1A #1A9B72
split-complementary
#311A9B #9B721A #439B1A
monochromatic
#100832 #201167 #311A9B #4223CF #684EE1
Accessibility & contrast
On white
11.99
#311A9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#311A9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311A9B
11.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311A9B | 1.00 | 11.99 | 1.75 | 11.99 |
| #FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #311a9b; /* rgb */ color: rgb(49, 26, 155); /* oklch */ color: oklch(35.6% 0.190 278.8);
Tailwind
colors: {
custom: {
50: '#7a5cba',
500: '#311a9b',
950: '#000000',
},
}SCSS
$custom: #311a9b; $custom-light: #7a5cba; $custom-dark: #000000;
JSON
{
"hex": "#311a9b",
"rgb": {
"r": 49,
"g": 26,
"b": 155
},
"hsl": {
"h": 250.698,
"s": 71.271,
"l": 35.49
},
"oklch": {
"l": 0.35635,
"c": 0.19009,
"h": 278.8
},
"luminance": 0.03758
}Semantic roles & 50–950 ramp
primary
#311A9B
secondary
#AEC44D
accent
#EE3ACE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981