#311C9F#311C9F
#311C9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.193 H 278.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).
Color values
| HEX | #311C9F |
|---|---|
| RGB | rgb(49, 28, 159) |
| HSL | hsl(250, 70%, 37%) |
| HSV | hsv(250, 82%, 62%) |
| CMYK | cmyk(69.2%, 82.4%, 0%, 37.6%) |
| CIE-LAB | lab(23.63, 47.76, -66.22) |
| CIE-LCH | lch(23.63, 81.64, 305.80°) |
| OKLab | oklab(36.3% 0.0269 -0.1913) |
| OKLCH | oklch(36.3% 0.193 278) |
| XYZ | xyz(7.9379, 3.9860, 33.1452) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.71
Royal
#0C1793
ΔE00 3.53
Cobalt Blue
#030AA7
ΔE00 3.62
Ultramarine
#2000B1
ΔE00 3.83
Royal Blue (survey)
#0504AA
ΔE00 3.97
True Blue
#010FCC
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311C9F #8A9F1C
analogous
#1C499F #311C9F #731C9F
triadic
#311C9F #9F311C #1C9F31
tetradic
#311C9F #9F1C49 #8A9F1C #1C9F73
square
#311C9F #9F1C49 #8A9F1C #1C9F73
split-complementary
#311C9F #9F731C #499F1C
monochromatic
#110A37 #21136B #311C9F #4125D3 #6B54E1
Accessibility & contrast
On white
11.68
#311C9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#311C9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311C9F
11.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311C9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311C9F | 1.00 | 11.68 | 1.80 | 11.68 |
| #FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #311c9f; /* rgb */ color: rgb(49, 28, 159); /* oklch */ color: oklch(36.3% 0.193 278.0);
Tailwind
colors: {
custom: {
50: '#7a5dbd',
500: '#311c9f',
950: '#000000',
},
}SCSS
$custom: #311c9f; $custom-light: #7a5dbd; $custom-dark: #000000;
JSON
{
"hex": "#311c9f",
"rgb": {
"r": 49,
"g": 28,
"b": 159
},
"hsl": {
"h": 249.618,
"s": 70.053,
"l": 36.667
},
"oklch": {
"l": 0.36303,
"c": 0.19318,
"h": 278
},
"luminance": 0.03987
}Semantic roles & 50–950 ramp
primary
#311C9F
secondary
#B2C453
accent
#ED3BD0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981