#313F9F#313F9F
#313F9F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.155 H 271.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).
Color values
| HEX | #313F9F |
|---|---|
| RGB | rgb(49, 63, 159) |
| HSL | hsl(232, 53%, 41%) |
| HSV | hsv(232, 69%, 62%) |
| CMYK | cmyk(69.2%, 60.4%, 0%, 37.6%) |
| CIE-LAB | lab(31.14, 27.22, -53.88) |
| CIE-LCH | lch(31.14, 60.36, 296.80°) |
| OKLab | oklab(41.7% 0.0043 -0.1553) |
| OKLCH | oklch(41.7% 0.155 271.6) |
| XYZ | xyz(9.3000, 6.7103, 33.5993) |
| Luminance | 0.0671 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.92
Blueberry
#464196
ΔE00 3.72
Cobalt
#0047AB
ΔE00 5.10
Blue Blue
#2242C7
ΔE00 5.44
Darkslateblue
#483D8B
ΔE00 5.52
Ocean Blue
#4F42B5
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F9F #9F9131
analogous
#31769F #313F9F #5A319F
triadic
#313F9F #9F313F #3F9F31
tetradic
#313F9F #9F3176 #9F9131 #319F5A
square
#313F9F #9F3176 #9F9131 #319F5A
split-complementary
#313F9F #9F5A31 #769F31
monochromatic
#141A41 #232C70 #313F9F #4757C6 #7682D5
Accessibility & contrast
On white
8.97
#313F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#313F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F9F
8.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F9F | 1.00 | 8.97 | 2.34 | 8.97 |
| #FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #313f9f; /* rgb */ color: rgb(49, 63, 159); /* oklch */ color: oklch(41.7% 0.155 271.6);
Tailwind
colors: {
custom: {
50: '#7774bc',
500: '#313f9f',
950: '#000000',
},
}SCSS
$custom: #313f9f; $custom-light: #7774bc; $custom-dark: #000000;
JSON
{
"hex": "#313f9f",
"rgb": {
"r": 49,
"g": 63,
"b": 159
},
"hsl": {
"h": 232.364,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.41703,
"c": 0.15536,
"h": 271.6
},
"luminance": 0.06711
}Semantic roles & 50–950 ramp
primary
#313F9F
secondary
#BDB36F
accent
#CA4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81