#313F8F#313F8F
#313F8F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.133 H 271.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).
Color values
| HEX | #313F8F |
|---|---|
| RGB | rgb(49, 63, 143) |
| HSL | hsl(231, 49%, 38%) |
| HSV | hsv(231, 66%, 56%) |
| CMYK | cmyk(65.7%, 55.9%, 0%, 43.9%) |
| CIE-LAB | lab(29.89, 21.33, -46.15) |
| CIE-LCH | lch(29.89, 50.84, 294.81°) |
| OKLab | oklab(40.38% 0.0039 -0.1326) |
| OKLCH | oklch(40.38% 0.133 271.7) |
| XYZ | xyz(8.0004, 6.1905, 26.7545) |
| Luminance | 0.0619 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.81
Darkslateblue
#483D8B
ΔE00 4.86
Sapphire (survey)
#2138AB
ΔE00 5.01
Cobalt (survey)
#1E488F
ΔE00 5.14
Cobalt
#0047AB
ΔE00 5.91
Darkish Blue
#014182
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F8F #8F8131
analogous
#316E8F #313F8F #52318F
triadic
#313F8F #8F313F #3F8F31
tetradic
#313F8F #8F316E #8F8131 #318F52
square
#313F8F #8F316E #8F8131 #318F52
split-complementary
#313F8F #8F5231 #6E8F31
monochromatic
#121734 #212B61 #313F8F #4153BD #6D7CCD
Accessibility & contrast
On white
9.38
#313F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#313F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F8F
9.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F8F | 1.00 | 9.38 | 2.24 | 9.38 |
| #FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#024B92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #313f8f; /* rgb */ color: rgb(49, 63, 143); /* oklch */ color: oklch(40.4% 0.133 271.7);
Tailwind
colors: {
custom: {
50: '#7473b0',
500: '#313f8f',
950: '#000000',
},
}SCSS
$custom: #313f8f; $custom-light: #7473b0; $custom-dark: #000000;
JSON
{
"hex": "#313f8f",
"rgb": {
"r": 49,
"g": 63,
"b": 143
},
"hsl": {
"h": 231.064,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.40376,
"c": 0.13264,
"h": 271.7
},
"luminance": 0.06191
}Semantic roles & 50–950 ramp
primary
#313F8F
secondary
#B5A967
accent
#C44FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80