#311F9F#311F9F
#311F9F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.191 H 277.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #311F9F |
|---|---|
| RGB | rgb(49, 31, 159) |
| HSL | hsl(248, 67%, 37%) |
| HSV | hsv(248, 81%, 62%) |
| CMYK | cmyk(69.2%, 80.5%, 0%, 37.6%) |
| CIE-LAB | lab(24.11, 46.33, -65.41) |
| CIE-LCH | lch(24.11, 80.16, 305.31°) |
| OKLab | oklab(36.64% 0.0255 -0.189) |
| OKLCH | oklch(36.64% 0.191 277.7) |
| XYZ | xyz(8.0126, 4.1354, 33.1701) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.85
Royal
#0C1793
ΔE00 3.70
Cobalt Blue
#030AA7
ΔE00 4.02
Ultramarine
#2000B1
ΔE00 4.28
Royal Blue (survey)
#0504AA
ΔE00 4.40
True Blue
#010FCC
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311F9F #8D9F1F
analogous
#1F4D9F #311F9F #711F9F
triadic
#311F9F #9F311F #1F9F31
tetradic
#311F9F #9F1F4D #8D9F1F #1F9F71
square
#311F9F #9F1F4D #8D9F1F #1F9F71
split-complementary
#311F9F #9F711F #4D9F1F
monochromatic
#110B39 #21156C #311F9F #4129D2 #6C5ADF
Accessibility & contrast
On white
11.49
#311F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#311F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311F9F
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311F9F | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #311f9f; /* rgb */ color: rgb(49, 31, 159); /* oklch */ color: oklch(36.6% 0.191 277.7);
Tailwind
colors: {
custom: {
50: '#7a5fbd',
500: '#311f9f',
950: '#000000',
},
}SCSS
$custom: #311f9f; $custom-light: #7a5fbd; $custom-dark: #000000;
JSON
{
"hex": "#311f9f",
"rgb": {
"r": 49,
"g": 31,
"b": 159
},
"hsl": {
"h": 248.438,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.36642,
"c": 0.1907,
"h": 277.7
},
"luminance": 0.04136
}Semantic roles & 50–950 ramp
primary
#311F9F
secondary
#B4C357
accent
#EA3ED2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981