#311F92#311F92
#311F92 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.175 H 279.6°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).
Color values
| HEX | #311F92 |
|---|---|
| RGB | rgb(49, 31, 146) |
| HSL | hsl(249, 65%, 35%) |
| HSV | hsv(249, 79%, 57%) |
| CMYK | cmyk(66.4%, 78.8%, 0%, 42.7%) |
| CIE-LAB | lab(22.68, 42.29, -59.79) |
| CIE-LCH | lch(22.68, 73.23, 305.27°) |
| OKLab | oklab(35.22% 0.0291 -0.1726) |
| OKLCH | oklch(35.22% 0.175 279.6) |
| XYZ | xyz(6.9433, 3.7077, 27.5383) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.24
Indigo Blue
#3A18B1
ΔE00 4.55
Cobalt Blue
#030AA7
ΔE00 4.76
Indigo (survey)
#380282
ΔE00 5.17
Royal Blue (survey)
#0504AA
ΔE00 5.22
Ultramarine
#2000B1
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311F92 #80921F
analogous
#1F4792 #311F92 #6A1F92
triadic
#311F92 #92311F #1F9231
tetradic
#311F92 #921F47 #80921F #1F926A
square
#311F92 #921F47 #80921F #1F926A
split-complementary
#311F92 #926A1F #47921F
monochromatic
#0F0A2D #201460 #311F92 #422AC4 #6751DA
Accessibility & contrast
On white
12.06
#311F92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#311F92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311F92
12.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311F92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311F92 | 1.00 | 12.06 | 1.74 | 12.06 |
| #FFFFFF | 12.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #311f92; /* rgb */ color: rgb(49, 31, 146); /* oklch */ color: oklch(35.2% 0.175 279.6);
Tailwind
colors: {
custom: {
50: '#775eb3',
500: '#311f92',
950: '#000000',
},
}SCSS
$custom: #311f92; $custom-light: #775eb3; $custom-dark: #000000;
JSON
{
"hex": "#311f92",
"rgb": {
"r": 49,
"g": 31,
"b": 146
},
"hsl": {
"h": 249.391,
"s": 64.972,
"l": 34.706
},
"oklch": {
"l": 0.35218,
"c": 0.17506,
"h": 279.6
},
"luminance": 0.03708
}Semantic roles & 50–950 ramp
primary
#311F92
secondary
#ACBD50
accent
#E840CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980