#311FA4#311FA4
#311FA4 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.197 H 277.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).
Color values
| HEX | #311FA4 |
|---|---|
| RGB | rgb(49, 31, 164) |
| HSL | hsl(248, 68%, 38%) |
| HSV | hsv(248, 81%, 64%) |
| CMYK | cmyk(70.1%, 81.1%, 0%, 35.7%) |
| CIE-LAB | lab(24.68, 47.86, -67.52) |
| CIE-LCH | lch(24.68, 82.76, 305.33°) |
| OKLab | oklab(37.2% 0.0241 -0.1951) |
| OKLCH | oklch(37.2% 0.197 277) |
| XYZ | xyz(8.4553, 4.3125, 35.5016) |
| Luminance | 0.0431 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.28
Cobalt Blue
#030AA7
ΔE00 3.97
Ultramarine
#2000B1
ΔE00 4.00
Royal
#0C1793
ΔE00 4.10
Royal Blue (survey)
#0504AA
ΔE00 4.30
True Blue
#010FCC
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311FA4 #92A41F
analogous
#1F50A4 #311FA4 #731FA4
triadic
#311FA4 #A4311F #1FA431
tetradic
#311FA4 #A41F50 #92A41F #1FA473
square
#311FA4 #A41F50 #92A41F #1FA473
split-complementary
#311FA4 #A4731F #50A41F
monochromatic
#120C3D #221571 #311FA4 #412AD7 #6F5DE0
Accessibility & contrast
On white
11.27
#311FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#311FA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311FA4
11.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311FA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311FA4 | 1.00 | 11.27 | 1.86 | 11.27 |
| #FFFFFF | 11.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #311fa4; /* rgb */ color: rgb(49, 31, 164); /* oklch */ color: oklch(37.2% 0.197 277.0);
Tailwind
colors: {
custom: {
50: '#7b5fc0',
500: '#311fa4',
950: '#000000',
},
}SCSS
$custom: #311fa4; $custom-light: #7b5fc0; $custom-dark: #000000;
JSON
{
"hex": "#311fa4",
"rgb": {
"r": 49,
"g": 31,
"b": 164
},
"hsl": {
"h": 248.12,
"s": 68.205,
"l": 38.235
},
"oklch": {
"l": 0.372,
"c": 0.19659,
"h": 277
},
"luminance": 0.04313
}Semantic roles & 50–950 ramp
primary
#311FA4
secondary
#B6C55A
accent
#EB3DD3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981