#311F90#311F90
#311F90 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.173 H 279.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #311F90 |
|---|---|
| RGB | rgb(49, 31, 144) |
| HSL | hsl(250, 65%, 34%) |
| HSV | hsv(250, 78%, 56%) |
| CMYK | cmyk(66%, 78.5%, 0%, 43.5%) |
| CIE-LAB | lab(22.46, 41.66, -58.91) |
| CIE-LCH | lch(22.46, 72.15, 305.27°) |
| OKLab | oklab(35% 0.0297 -0.17) |
| OKLCH | oklch(35% 0.173 279.9) |
| XYZ | xyz(6.7890, 3.6460, 26.7261) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.27
Indigo Blue
#3A18B1
ΔE00 4.83
Cobalt Blue
#030AA7
ΔE00 4.94
Indigo (survey)
#380282
ΔE00 5.06
Royal Blue (survey)
#0504AA
ΔE00 5.40
Ultramarine
#2000B1
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311F90 #7E901F
analogous
#1F4590 #311F90 #6A1F90
triadic
#311F90 #90311F #1F9031
tetradic
#311F90 #901F45 #7E901F #1F906A
square
#311F90 #901F45 #7E901F #1F906A
split-complementary
#311F90 #906A1F #45901F
monochromatic
#0F092B #20145E #311F90 #422AC2 #6650D9
Accessibility & contrast
On white
12.14
#311F90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#311F90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311F90
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311F90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311F90 | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #311f90; /* rgb */ color: rgb(49, 31, 144); /* oklch */ color: oklch(35.0% 0.173 279.9);
Tailwind
colors: {
custom: {
50: '#775eb2',
500: '#311f90',
950: '#000000',
},
}SCSS
$custom: #311f90; $custom-light: #775eb2; $custom-dark: #000000;
JSON
{
"hex": "#311f90",
"rgb": {
"r": 49,
"g": 31,
"b": 144
},
"hsl": {
"h": 249.558,
"s": 64.571,
"l": 34.314
},
"oklch": {
"l": 0.35003,
"c": 0.17262,
"h": 279.9
},
"luminance": 0.03647
}Semantic roles & 50–950 ramp
primary
#311F90
secondary
#ABBC4E
accent
#E840CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980