#313C95#313C95
#313C95 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.145 H 272.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #313C95 |
|---|---|
| RGB | rgb(49, 60, 149) |
| HSL | hsl(233, 51%, 39%) |
| HSV | hsv(233, 67%, 58%) |
| CMYK | cmyk(67.1%, 59.7%, 0%, 41.6%) |
| CIE-LAB | lab(29.55, 25.55, -50.38) |
| CIE-LCH | lch(29.55, 56.49, 296.89°) |
| OKLab | oklab(40.27% 0.0069 -0.1451) |
| OKLCH | oklch(40.27% 0.145 272.7) |
| XYZ | xyz(8.3055, 6.0539, 29.1588) |
| Luminance | 0.0605 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.49
Sapphire (survey)
#2138AB
ΔE00 3.68
Darkslateblue
#483D8B
ΔE00 4.66
Cobalt
#0047AB
ΔE00 6.17
Cobalt (survey)
#1E488F
ΔE00 6.28
Ocean Blue
#4F42B5
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C95 #958A31
analogous
#316E95 #313C95 #583195
triadic
#313C95 #95313C #3C9531
tetradic
#313C95 #95316E #958A31 #319558
square
#313C95 #95316E #958A31 #319558
split-complementary
#313C95 #955831 #6E9531
monochromatic
#131739 #222967 #313C95 #4250C1 #707BD0
Accessibility & contrast
On white
9.50
#313C95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#313C95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C95
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C95 | 1.00 | 9.50 | 2.21 | 9.50 |
| #FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #313c95; /* rgb */ color: rgb(49, 60, 149); /* oklch */ color: oklch(40.3% 0.145 272.7);
Tailwind
colors: {
custom: {
50: '#7571b5',
500: '#313c95',
950: '#000000',
},
}SCSS
$custom: #313c95; $custom-light: #7571b5; $custom-dark: #000000;
JSON
{
"hex": "#313c95",
"rgb": {
"r": 49,
"g": 60,
"b": 149
},
"hsl": {
"h": 233.4,
"s": 50.505,
"l": 38.824
},
"oklch": {
"l": 0.40269,
"c": 0.14522,
"h": 272.7
},
"luminance": 0.06055
}Semantic roles & 50–950 ramp
primary
#313C95
secondary
#B8AF6A
accent
#CB4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80