#313E8D#313E8D
#313E8D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.131 H 272.1°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #313E8D |
|---|---|
| RGB | rgb(49, 62, 141) |
| HSL | hsl(232, 48%, 37%) |
| HSV | hsv(232, 65%, 55%) |
| CMYK | cmyk(65.2%, 56%, 0%, 44.7%) |
| CIE-LAB | lab(29.46, 21.27, -45.61) |
| CIE-LCH | lch(29.46, 50.32, 295.00°) |
| OKLab | oklab(40.01% 0.0048 -0.131) |
| OKLCH | oklch(40.01% 0.131 272.1) |
| XYZ | xyz(7.7954, 6.0206, 25.9454) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.85
Darkslateblue
#483D8B
ΔE00 4.69
Sapphire (survey)
#2138AB
ΔE00 5.16
Cobalt (survey)
#1E488F
ΔE00 5.40
Cobalt
#0047AB
ΔE00 6.28
Darkish Blue
#014182
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E8D #8D8031
analogous
#316C8D #313E8D #52318D
triadic
#313E8D #8D313E #3E8D31
tetradic
#313E8D #8D316C #8D8031 #318D52
square
#313E8D #8D316C #8D8031 #318D52
split-complementary
#313E8D #8D5231 #6C8D31
monochromatic
#111632 #212A60 #313E8D #4152BA #6C7ACC
Accessibility & contrast
On white
9.53
#313E8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#313E8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E8D
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E8D | 1.00 | 9.53 | 2.20 | 9.53 |
| #FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#034A90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313e8d; /* rgb */ color: rgb(49, 62, 141); /* oklch */ color: oklch(40.0% 0.131 272.1);
Tailwind
colors: {
custom: {
50: '#7473af',
500: '#313e8d',
950: '#000000',
},
}SCSS
$custom: #313e8d; $custom-light: #7473af; $custom-dark: #000000;
JSON
{
"hex": "#313e8d",
"rgb": {
"r": 49,
"g": 62,
"b": 141
},
"hsl": {
"h": 231.522,
"s": 48.421,
"l": 37.255
},
"oklch": {
"l": 0.40011,
"c": 0.13108,
"h": 272.1
},
"luminance": 0.06021
}Semantic roles & 50–950 ramp
primary
#313E8D
secondary
#B4A966
accent
#C550D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F