#31306F#31306F
#31306F is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.106 H 280.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #31306F |
|---|---|
| RGB | rgb(49, 48, 111) |
| HSL | hsl(241, 40%, 31%) |
| HSV | hsv(241, 57%, 44%) |
| CMYK | cmyk(55.9%, 56.8%, 0%, 56.5%) |
| CIE-LAB | lab(23.39, 19.95, -36.56) |
| CIE-LCH | lch(23.39, 41.65, 298.61°) |
| OKLab | oklab(34.75% 0.0185 -0.1045) |
| OKLCH | oklch(34.75% 0.106 280) |
| XYZ | xyz(5.1919, 3.9143, 15.5178) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.14
Midnight Blue
#191970
ΔE00 7.19
Marine
#042E60
ΔE00 7.50
Blueberry
#464196
ΔE00 7.68
Navy Blue
#1B2A4A
ΔE00 8.17
Marine Blue
#01386A
ΔE00 9.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31306F #6E6F30
analogous
#304E6F #31306F #50306F
triadic
#31306F #6F3130 #306F31
tetradic
#31306F #6F304E #6E6F30 #306F50
square
#31306F #6F304E #6E6F30 #306F50
split-complementary
#31306F #6F5030 #4E6F30
monochromatic
#0B0B1A #1E1E44 #31306F #44429A #615FBA
Accessibility & contrast
On white
11.78
#31306F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#31306F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31306F
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31306F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31306F | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B3A71
Deuteranopia (green-blind)
#02356E
Tritanopia (blue-blind)
#163E4A
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #31306f; /* rgb */ color: rgb(49, 48, 111); /* oklch */ color: oklch(34.8% 0.106 280.0);
Tailwind
colors: {
custom: {
50: '#6f6899',
500: '#31306f',
950: '#000000',
},
}SCSS
$custom: #31306f; $custom-light: #6f6899; $custom-dark: #000000;
JSON
{
"hex": "#31306f",
"rgb": {
"r": 49,
"g": 48,
"b": 111
},
"hsl": {
"h": 240.952,
"s": 39.623,
"l": 31.176
},
"oklch": {
"l": 0.34751,
"c": 0.10616,
"h": 280
},
"luminance": 0.03915
}Semantic roles & 50–950 ramp
primary
#31306F
secondary
#9FA05B
accent
#D058CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E