#311D9F#311D9F
#311D9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.4% C 0.192 H 277.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).
Color values
| HEX | #311D9F |
|---|---|
| RGB | rgb(49, 29, 159) |
| HSL | hsl(249, 69%, 37%) |
| HSV | hsv(249, 82%, 62%) |
| CMYK | cmyk(69.2%, 81.8%, 0%, 37.6%) |
| CIE-LAB | lab(23.78, 47.29, -65.96) |
| CIE-LCH | lch(23.78, 81.16, 305.64°) |
| OKLab | oklab(36.41% 0.0264 -0.1905) |
| OKLCH | oklch(36.41% 0.192 277.9) |
| XYZ | xyz(7.9620, 4.0342, 33.1533) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.74
Royal
#0C1793
ΔE00 3.58
Cobalt Blue
#030AA7
ΔE00 3.75
Ultramarine
#2000B1
ΔE00 3.97
Royal Blue (survey)
#0504AA
ΔE00 4.10
True Blue
#010FCC
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311D9F #8B9F1D
analogous
#1D4A9F #311D9F #721D9F
triadic
#311D9F #9F311D #1D9F31
tetradic
#311D9F #9F1D4A #8B9F1D #1D9F72
square
#311D9F #9F1D4A #8B9F1D #1D9F72
split-complementary
#311D9F #9F721D #4A9F1D
monochromatic
#110A37 #21146B #311D9F #4126D3 #6B56E0
Accessibility & contrast
On white
11.62
#311D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#311D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311D9F
11.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311D9F | 1.00 | 11.62 | 1.81 | 11.62 |
| #FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #311d9f; /* rgb */ color: rgb(49, 29, 159); /* oklch */ color: oklch(36.4% 0.192 277.9);
Tailwind
colors: {
custom: {
50: '#7a5ebd',
500: '#311d9f',
950: '#000000',
},
}SCSS
$custom: #311d9f; $custom-light: #7a5ebd; $custom-dark: #000000;
JSON
{
"hex": "#311d9f",
"rgb": {
"r": 49,
"g": 29,
"b": 159
},
"hsl": {
"h": 249.231,
"s": 69.149,
"l": 36.863
},
"oklch": {
"l": 0.36413,
"c": 0.19237,
"h": 277.9
},
"luminance": 0.04035
}Semantic roles & 50–950 ramp
primary
#311D9F
secondary
#B2C454
accent
#EC3CD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981