#313B95#313B95
#313B95 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.147 H 273.0°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).
Color values
| HEX | #313B95 |
|---|---|
| RGB | rgb(49, 59, 149) |
| HSL | hsl(234, 51%, 39%) |
| HSV | hsv(234, 67%, 58%) |
| CMYK | cmyk(67.1%, 60.4%, 0%, 41.6%) |
| CIE-LAB | lab(29.29, 26.21, -50.81) |
| CIE-LCH | lch(29.29, 57.17, 297.29°) |
| OKLab | oklab(40.08% 0.0077 -0.1463) |
| OKLCH | oklch(40.08% 0.147 273) |
| XYZ | xyz(8.2536, 5.9501, 29.1415) |
| Luminance | 0.0595 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.53
Sapphire (survey)
#2138AB
ΔE00 3.58
Darkslateblue
#483D8B
ΔE00 4.61
Cobalt
#0047AB
ΔE00 6.41
Cobalt (survey)
#1E488F
ΔE00 6.59
Ocean Blue
#4F42B5
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B95 #958B31
analogous
#316D95 #313B95 #593195
triadic
#313B95 #95313B #3B9531
tetradic
#313B95 #95316D #958B31 #319559
square
#313B95 #95316D #958B31 #319559
split-complementary
#313B95 #955931 #6D9531
monochromatic
#131739 #222967 #313B95 #424FC1 #707AD0
Accessibility & contrast
On white
9.59
#313B95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#313B95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B95
9.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B95 | 1.00 | 9.59 | 2.19 | 9.59 |
| #FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313b95; /* rgb */ color: rgb(49, 59, 149); /* oklch */ color: oklch(40.1% 0.147 273.0);
Tailwind
colors: {
custom: {
50: '#7570b5',
500: '#313b95',
950: '#000000',
},
}SCSS
$custom: #313b95; $custom-light: #7570b5; $custom-dark: #000000;
JSON
{
"hex": "#313b95",
"rgb": {
"r": 49,
"g": 59,
"b": 149
},
"hsl": {
"h": 234,
"s": 50.505,
"l": 38.824
},
"oklch": {
"l": 0.40075,
"c": 0.14652,
"h": 273
},
"luminance": 0.05951
}Semantic roles & 50–950 ramp
primary
#313B95
secondary
#B8B06A
accent
#CC4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80