#313D9F#313D9F
#313D9F is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.158 H 272.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).
Color values
| HEX | #313D9F |
|---|---|
| RGB | rgb(49, 61, 159) |
| HSL | hsl(233, 53%, 41%) |
| HSV | hsv(233, 69%, 62%) |
| CMYK | cmyk(69.2%, 61.6%, 0%, 37.6%) |
| CIE-LAB | lab(30.62, 28.54, -54.72) |
| CIE-LCH | lch(30.62, 61.71, 297.54°) |
| OKLab | oklab(41.32% 0.0059 -0.1578) |
| OKLCH | oklch(41.32% 0.158 272.1) |
| XYZ | xyz(9.1913, 6.4928, 33.5630) |
| Luminance | 0.0649 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.53
Blueberry
#464196
ΔE00 3.72
Darkslateblue
#483D8B
ΔE00 5.38
Blue Blue
#2242C7
ΔE00 5.54
Ocean Blue
#4F42B5
ΔE00 5.54
Cobalt
#0047AB
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313D9F #9F9331
analogous
#31749F #313D9F #5C319F
triadic
#313D9F #9F313D #3D9F31
tetradic
#313D9F #9F3174 #9F9331 #319F5C
square
#313D9F #9F3174 #9F9331 #319F5C
split-complementary
#313D9F #9F5C31 #749F31
monochromatic
#141941 #232B70 #313D9F #4755C6 #7680D5
Accessibility & contrast
On white
9.14
#313D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#313D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313D9F
9.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313D9F | 1.00 | 9.14 | 2.30 | 9.14 |
| #FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #313d9f; /* rgb */ color: rgb(49, 61, 159); /* oklch */ color: oklch(41.3% 0.158 272.1);
Tailwind
colors: {
custom: {
50: '#7772bc',
500: '#313d9f',
950: '#000000',
},
}SCSS
$custom: #313d9f; $custom-light: #7772bc; $custom-dark: #000000;
JSON
{
"hex": "#313d9f",
"rgb": {
"r": 49,
"g": 61,
"b": 159
},
"hsl": {
"h": 233.455,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.41321,
"c": 0.1579,
"h": 272.1
},
"luminance": 0.06494
}Semantic roles & 50–950 ramp
primary
#313D9F
secondary
#BDB46F
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81