#31318F#31318F
#31318F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.151 H 276.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).
Color values
| HEX | #31318F |
|---|---|
| RGB | rgb(49, 49, 143) |
| HSL | hsl(240, 49%, 38%) |
| HSV | hsv(240, 66%, 56%) |
| CMYK | cmyk(65.7%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(26.25, 30.62, -52.07) |
| CIE-LCH | lch(26.25, 60.41, 300.46°) |
| OKLab | oklab(37.68% 0.0167 -0.1501) |
| OKLCH | oklch(37.68% 0.151 276.3) |
| XYZ | xyz(7.3212, 4.8322, 26.5282) |
| Luminance | 0.0483 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.69
Darkslateblue
#483D8B
ΔE00 4.97
Blueberry
#464196
ΔE00 5.11
Royal
#0C1793
ΔE00 6.76
Midnight Blue
#191970
ΔE00 7.48
Indigo Blue
#3A18B1
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31318F #8F8F31
analogous
#31608F #31318F #60318F
triadic
#31318F #8F3131 #318F31
tetradic
#31318F #8F3160 #8F8F31 #318F60
square
#31318F #8F3160 #8F8F31 #318F60
split-complementary
#31318F #8F6031 #608F31
monochromatic
#121234 #212161 #31318F #4141BD #6D6DCD
Accessibility & contrast
On white
10.68
#31318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#31318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31318F
10.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31318F | 1.00 | 10.68 | 1.97 | 10.68 |
| #FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #31318f; /* rgb */ color: rgb(49, 49, 143); /* oklch */ color: oklch(37.7% 0.151 276.3);
Tailwind
colors: {
custom: {
50: '#7569b1',
500: '#31318f',
950: '#000000',
},
}SCSS
$custom: #31318f; $custom-light: #7569b1; $custom-dark: #000000;
JSON
{
"hex": "#31318f",
"rgb": {
"r": 49,
"g": 49,
"b": 143
},
"hsl": {
"h": 240,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.37683,
"c": 0.15103,
"h": 276.3
},
"luminance": 0.04833
}Semantic roles & 50–950 ramp
primary
#31318F
secondary
#B5B567
accent
#D94FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80