#311D9C#311D9C
#311D9C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.189 H 278.3°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).
Color values
| HEX | #311D9C |
|---|---|
| RGB | rgb(49, 29, 156) |
| HSL | hsl(249, 69%, 36%) |
| HSV | hsv(249, 81%, 61%) |
| CMYK | cmyk(68.6%, 81.4%, 0%, 38.8%) |
| CIE-LAB | lab(23.44, 46.38, -64.69) |
| CIE-LCH | lch(23.44, 79.60, 305.64°) |
| OKLab | oklab(36.08% 0.0273 -0.1868) |
| OKLCH | oklch(36.08% 0.189 278.3) |
| XYZ | xyz(7.7048, 3.9313, 31.7988) |
| Luminance | 0.0393 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.12
Royal
#0C1793
ΔE00 3.38
Cobalt Blue
#030AA7
ΔE00 3.85
Ultramarine
#2000B1
ΔE00 4.20
Royal Blue (survey)
#0504AA
ΔE00 4.23
Indigo (survey)
#380282
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311D9C #889C1D
analogous
#1D499C #311D9C #711D9C
triadic
#311D9C #9C311D #1D9C31
tetradic
#311D9C #9C1D49 #889C1D #1D9C71
square
#311D9C #9C1D49 #889C1D #1D9C71
split-complementary
#311D9C #9C711D #499C1D
monochromatic
#110A35 #211368 #311D9C #4127D0 #6A54DF
Accessibility & contrast
On white
11.76
#311D9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#311D9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311D9C
11.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311D9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311D9C | 1.00 | 11.76 | 1.79 | 11.76 |
| #FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #311d9c; /* rgb */ color: rgb(49, 29, 156); /* oklch */ color: oklch(36.1% 0.189 278.3);
Tailwind
colors: {
custom: {
50: '#7a5dbb',
500: '#311d9c',
950: '#000000',
},
}SCSS
$custom: #311d9c; $custom-light: #7a5dbb; $custom-dark: #000000;
JSON
{
"hex": "#311d9c",
"rgb": {
"r": 49,
"g": 29,
"b": 156
},
"hsl": {
"h": 249.449,
"s": 68.649,
"l": 36.275
},
"oklch": {
"l": 0.36077,
"c": 0.18884,
"h": 278.3
},
"luminance": 0.03932
}Semantic roles & 50–950 ramp
primary
#311D9C
secondary
#B1C252
accent
#EB3CD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981