#313F95#313F95
#313F95 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.141 H 271.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).
Color values
| HEX | #313F95 |
|---|---|
| RGB | rgb(49, 63, 149) |
| HSL | hsl(232, 51%, 39%) |
| HSV | hsv(232, 67%, 58%) |
| CMYK | cmyk(67.1%, 57.7%, 0%, 41.6%) |
| CIE-LAB | lab(30.34, 23.55, -49.09) |
| CIE-LCH | lch(30.34, 54.44, 295.63°) |
| OKLab | oklab(40.86% 0.0041 -0.1412) |
| OKLCH | oklch(40.86% 0.141 271.7) |
| XYZ | xyz(8.4671, 6.3771, 29.2126) |
| Luminance | 0.0638 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.58
Sapphire (survey)
#2138AB
ΔE00 4.15
Darkslateblue
#483D8B
ΔE00 4.97
Cobalt (survey)
#1E488F
ΔE00 5.38
Cobalt
#0047AB
ΔE00 5.49
Ocean Blue
#4F42B5
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F95 #958731
analogous
#317195 #313F95 #553195
triadic
#313F95 #95313F #3F9531
tetradic
#313F95 #953171 #958731 #319555
square
#313F95 #953171 #958731 #319555
split-complementary
#313F95 #955531 #719531
monochromatic
#131839 #222C67 #313F95 #4254C1 #707ED0
Accessibility & contrast
On white
9.23
#313F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#313F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F95
9.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F95 | 1.00 | 9.23 | 2.28 | 9.23 |
| #FFFFFF | 9.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313f95; /* rgb */ color: rgb(49, 63, 149); /* oklch */ color: oklch(40.9% 0.141 271.7);
Tailwind
colors: {
custom: {
50: '#7573b5',
500: '#313f95',
950: '#000000',
},
}SCSS
$custom: #313f95; $custom-light: #7573b5; $custom-dark: #000000;
JSON
{
"hex": "#313f95",
"rgb": {
"r": 49,
"g": 63,
"b": 149
},
"hsl": {
"h": 231.6,
"s": 50.505,
"l": 38.824
},
"oklch": {
"l": 0.40863,
"c": 0.14128,
"h": 271.7
},
"luminance": 0.06378
}Semantic roles & 50–950 ramp
primary
#313F95
secondary
#B8AD6A
accent
#C64EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80