#313F9C#313F9C
#313F9C is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.151 H 271.6°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).
Color values
| HEX | #313F9C |
|---|---|
| RGB | rgb(49, 63, 156) |
| HSL | hsl(232, 52%, 40%) |
| HSV | hsv(232, 69%, 61%) |
| CMYK | cmyk(68.6%, 59.6%, 0%, 38.8%) |
| CIE-LAB | lab(30.90, 26.12, -52.46) |
| CIE-LCH | lch(30.90, 58.60, 296.47°) |
| OKLab | oklab(41.45% 0.0043 -0.1511) |
| OKLCH | oklch(41.45% 0.151 271.6) |
| XYZ | xyz(9.0429, 6.6074, 32.2448) |
| Luminance | 0.0661 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.25
Blueberry
#464196
ΔE00 3.61
Cobalt
#0047AB
ΔE00 5.17
Darkslateblue
#483D8B
ΔE00 5.32
Cobalt (survey)
#1E488F
ΔE00 5.82
Blue Blue
#2242C7
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F9C #9C8E31
analogous
#31749C #313F9C #59319C
triadic
#313F9C #9C313F #3F9C31
tetradic
#313F9C #9C3174 #9C8E31 #319C59
square
#313F9C #9C3174 #9C8E31 #319C59
split-complementary
#313F9C #9C5931 #749C31
monochromatic
#14193F #222C6D #313F9C #4556C5 #7481D3
Accessibility & contrast
On white
9.05
#313F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#313F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F9C
9.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F9C | 1.00 | 9.05 | 2.32 | 9.05 |
| #FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #313f9c; /* rgb */ color: rgb(49, 63, 156); /* oklch */ color: oklch(41.4% 0.151 271.6);
Tailwind
colors: {
custom: {
50: '#7773ba',
500: '#313f9c',
950: '#000000',
},
}SCSS
$custom: #313f9c; $custom-light: #7773ba; $custom-dark: #000000;
JSON
{
"hex": "#313f9c",
"rgb": {
"r": 49,
"g": 63,
"b": 156
},
"hsl": {
"h": 232.15,
"s": 52.195,
"l": 40.196
},
"oklch": {
"l": 0.41447,
"c": 0.15118,
"h": 271.6
},
"luminance": 0.06608
}Semantic roles & 50–950 ramp
primary
#313F9C
secondary
#BBB16D
accent
#C94CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81