#311F9C#311F9C
#311F9C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.187 H 278.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).
Color values
| HEX | #311F9C |
|---|---|
| RGB | rgb(49, 31, 156) |
| HSL | hsl(249, 67%, 37%) |
| HSV | hsv(249, 80%, 61%) |
| CMYK | cmyk(68.6%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(23.78, 45.41, -64.13) |
| CIE-LCH | lch(23.78, 78.58, 305.30°) |
| OKLab | oklab(36.31% 0.0264 -0.1853) |
| OKLCH | oklch(36.31% 0.187 278.1) |
| XYZ | xyz(7.7554, 4.0326, 31.8157) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.22
Royal
#0C1793
ΔE00 3.50
Cobalt Blue
#030AA7
ΔE00 4.12
Ultramarine
#2000B1
ΔE00 4.50
Royal Blue (survey)
#0504AA
ΔE00 4.52
Indigo (survey)
#380282
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311F9C #8A9C1F
analogous
#1F4C9C #311F9C #701F9C
triadic
#311F9C #9C311F #1F9C31
tetradic
#311F9C #9C1F4C #8A9C1F #1F9C70
square
#311F9C #9C1F4C #8A9C1F #1F9C70
split-complementary
#311F9C #9C701F #4C9C1F
monochromatic
#110B36 #211569 #311F9C #4129CF #6B58DE
Accessibility & contrast
On white
11.62
#311F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#311F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311F9C
11.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311F9C | 1.00 | 11.62 | 1.81 | 11.62 |
| #FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #311f9c; /* rgb */ color: rgb(49, 31, 156); /* oklch */ color: oklch(36.3% 0.187 278.1);
Tailwind
colors: {
custom: {
50: '#795eba',
500: '#311f9c',
950: '#000000',
},
}SCSS
$custom: #311f9c; $custom-light: #795eba; $custom-dark: #000000;
JSON
{
"hex": "#311f9c",
"rgb": {
"r": 49,
"g": 31,
"b": 156
},
"hsl": {
"h": 248.64,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.3631,
"c": 0.18713,
"h": 278.1
},
"luminance": 0.04033
}Semantic roles & 50–950 ramp
primary
#311F9C
secondary
#B2C155
accent
#EA3ED1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981