#31309F#31309F
#31309F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.174 H 275.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).
Color values
| HEX | #31309F |
|---|---|
| RGB | rgb(49, 48, 159) |
| HSL | hsl(241, 54%, 41%) |
| HSV | hsv(241, 70%, 62%) |
| CMYK | cmyk(69.2%, 69.8%, 0%, 37.6%) |
| CIE-LAB | lab(27.49, 36.84, -59.85) |
| CIE-LCH | lch(27.49, 70.28, 301.61°) |
| OKLab | oklab(39.03% 0.0156 -0.1729) |
| OKLCH | oklch(39.03% 0.174 275.2) |
| XYZ | xyz(8.5795, 5.2693, 33.3591) |
| Luminance | 0.0527 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.32
Blueberry
#464196
ΔE00 5.69
Indigo Blue
#3A18B1
ΔE00 5.72
Darkslateblue
#483D8B
ΔE00 6.21
Royal
#0C1793
ΔE00 6.37
Ocean Blue
#4F42B5
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31309F #9E9F30
analogous
#30669F #31309F #69309F
triadic
#31309F #9F3130 #309F31
tetradic
#31309F #9F3066 #9E9F30 #309F69
square
#31309F #9F3066 #9E9F30 #309F69
split-complementary
#31309F #9F6930 #669F30
monochromatic
#141441 #232270 #31309F #4645C7 #7574D5
Accessibility & contrast
On white
10.22
#31309F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#31309F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31309F
10.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31309F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31309F | 1.00 | 10.22 | 2.05 | 10.22 |
| #FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #31309f; /* rgb */ color: rgb(49, 48, 159); /* oklch */ color: oklch(39.0% 0.174 275.2);
Tailwind
colors: {
custom: {
50: '#7969bc',
500: '#31309f',
950: '#000000',
},
}SCSS
$custom: #31309f; $custom-light: #7969bc; $custom-dark: #000000;
JSON
{
"hex": "#31309f",
"rgb": {
"r": 49,
"g": 48,
"b": 159
},
"hsl": {
"h": 240.541,
"s": 53.623,
"l": 40.588
},
"oklch": {
"l": 0.39032,
"c": 0.1736,
"h": 275.2
},
"luminance": 0.0527
}Semantic roles & 50–950 ramp
primary
#31309F
secondary
#BCBD6E
accent
#DD4BDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81