#313E8F#313E8F
#313E8F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.134 H 272.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #313E8F |
|---|---|
| RGB | rgb(49, 62, 143) |
| HSL | hsl(232, 49%, 38%) |
| HSV | hsv(232, 66%, 56%) |
| CMYK | cmyk(65.7%, 56.6%, 0%, 43.9%) |
| CIE-LAB | lab(29.62, 22.01, -46.59) |
| CIE-LCH | lch(29.62, 51.53, 295.28°) |
| OKLab | oklab(40.17% 0.0049 -0.1339) |
| OKLCH | oklch(40.17% 0.134 272.1) |
| XYZ | xyz(7.9455, 6.0807, 26.7362) |
| Luminance | 0.0608 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.73
Darkslateblue
#483D8B
ΔE00 4.70
Sapphire (survey)
#2138AB
ΔE00 4.85
Cobalt (survey)
#1E488F
ΔE00 5.44
Cobalt
#0047AB
ΔE00 6.11
Darkish Blue
#014182
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E8F #8F8231
analogous
#316D8F #313E8F #53318F
triadic
#313E8F #8F313E #3E8F31
tetradic
#313E8F #8F316D #8F8231 #318F53
square
#313E8F #8F316D #8F8231 #318F53
split-complementary
#313E8F #8F5331 #6D8F31
monochromatic
#121634 #212A61 #313E8F #4152BD #6D7BCD
Accessibility & contrast
On white
9.48
#313E8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#313E8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E8F
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E8F | 1.00 | 9.48 | 2.22 | 9.48 |
| #FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #313e8f; /* rgb */ color: rgb(49, 62, 143); /* oklch */ color: oklch(40.2% 0.134 272.1);
Tailwind
colors: {
custom: {
50: '#7473b0',
500: '#313e8f',
950: '#000000',
},
}SCSS
$custom: #313e8f; $custom-light: #7473b0; $custom-dark: #000000;
JSON
{
"hex": "#313e8f",
"rgb": {
"r": 49,
"g": 62,
"b": 143
},
"hsl": {
"h": 231.702,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.40172,
"c": 0.13398,
"h": 272.1
},
"luminance": 0.06081
}Semantic roles & 50–950 ramp
primary
#313E8F
secondary
#B5AA67
accent
#C64FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090811
muted
#7B7B80