#311F9E#311F9E
#311F9E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.190 H 277.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).
Color values
| HEX | #311F9E |
|---|---|
| RGB | rgb(49, 31, 158) |
| HSL | hsl(249, 67%, 37%) |
| HSV | hsv(249, 80%, 62%) |
| CMYK | cmyk(69%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(24.00, 46.02, -64.99) |
| CIE-LCH | lch(24.00, 79.63, 305.31°) |
| OKLab | oklab(36.53% 0.0258 -0.1877) |
| OKLCH | oklch(36.53% 0.19 277.8) |
| XYZ | xyz(7.9262, 4.1009, 32.7150) |
| Luminance | 0.0410 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.97
Royal
#0C1793
ΔE00 3.63
Cobalt Blue
#030AA7
ΔE00 4.05
Ultramarine
#2000B1
ΔE00 4.35
Royal Blue (survey)
#0504AA
ΔE00 4.44
True Blue
#010FCC
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311F9E #8C9E1F
analogous
#1F4D9E #311F9E #711F9E
triadic
#311F9E #9E311F #1F9E31
tetradic
#311F9E #9E1F4D #8C9E1F #1F9E71
square
#311F9E #9E1F4D #8C9E1F #1F9E71
split-complementary
#311F9E #9E711F #4D9E1F
monochromatic
#110B38 #21156B #311F9E #4129D1 #6C59DE
Accessibility & contrast
On white
11.54
#311F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#311F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311F9E
11.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311F9E | 1.00 | 11.54 | 1.82 | 11.54 |
| #FFFFFF | 11.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #311f9e; /* rgb */ color: rgb(49, 31, 158); /* oklch */ color: oklch(36.5% 0.190 277.8);
Tailwind
colors: {
custom: {
50: '#7a5fbc',
500: '#311f9e',
950: '#000000',
},
}SCSS
$custom: #311f9e; $custom-light: #7a5fbc; $custom-dark: #000000;
JSON
{
"hex": "#311f9e",
"rgb": {
"r": 49,
"g": 31,
"b": 158
},
"hsl": {
"h": 248.504,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.36531,
"c": 0.18951,
"h": 277.8
},
"luminance": 0.04102
}Semantic roles & 50–950 ramp
primary
#311F9E
secondary
#B3C256
accent
#EA3ED2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981