#31308E#31308E
#31308E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.151 H 276.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).
Color values
| HEX | #31308E |
|---|---|
| RGB | rgb(49, 48, 142) |
| HSL | hsl(241, 49%, 37%) |
| HSV | hsv(241, 66%, 56%) |
| CMYK | cmyk(65.5%, 66.2%, 0%, 44.3%) |
| CIE-LAB | lab(25.92, 30.92, -51.99) |
| CIE-LCH | lch(25.92, 60.49, 300.74°) |
| OKLab | oklab(37.41% 0.0176 -0.1499) |
| OKLCH | oklch(37.41% 0.151 276.7) |
| XYZ | xyz(7.2045, 4.7193, 26.1172) |
| Luminance | 0.0472 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.93
Darkslateblue
#483D8B
ΔE00 5.09
Blueberry
#464196
ΔE00 5.34
Royal
#0C1793
ΔE00 6.54
Midnight Blue
#191970
ΔE00 7.20
Indigo Blue
#3A18B1
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31308E #8D8E30
analogous
#305E8E #31308E #60308E
triadic
#31308E #8E3130 #308E31
tetradic
#31308E #8E305E #8D8E30 #308E60
square
#31308E #8E305E #8D8E30 #308E60
split-complementary
#31308E #8E6030 #5E8E30
monochromatic
#111133 #212160 #31308E #413FBC #6C6BCD
Accessibility & contrast
On white
10.80
#31308E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#31308E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31308E
10.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31308E | 1.00 | 10.80 | 1.94 | 10.80 |
| #FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #31308e; /* rgb */ color: rgb(49, 48, 142); /* oklch */ color: oklch(37.4% 0.151 276.7);
Tailwind
colors: {
custom: {
50: '#7569b0',
500: '#31308e',
950: '#000000',
},
}SCSS
$custom: #31308e; $custom-light: #7569b0; $custom-dark: #000000;
JSON
{
"hex": "#31308e",
"rgb": {
"r": 49,
"g": 48,
"b": 142
},
"hsl": {
"h": 240.638,
"s": 49.474,
"l": 37.255
},
"oklch": {
"l": 0.37414,
"c": 0.15091,
"h": 276.7
},
"luminance": 0.0472
}Semantic roles & 50–950 ramp
primary
#31308E
secondary
#B4B465
accent
#D94FD8
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80