#313E99#313E99
#313E99 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.148 H 272.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #313E99 |
|---|---|
| RGB | rgb(49, 62, 153) |
| HSL | hsl(233, 51%, 40%) |
| HSV | hsv(233, 68%, 60%) |
| CMYK | cmyk(68%, 59.5%, 0%, 40%) |
| CIE-LAB | lab(30.39, 25.68, -51.45) |
| CIE-LCH | lch(30.39, 57.50, 296.53°) |
| OKLab | oklab(41% 0.0051 -0.1482) |
| OKLCH | oklch(41% 0.148 272) |
| XYZ | xyz(8.7371, 6.3973, 30.9052) |
| Luminance | 0.0640 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.43
Blueberry
#464196
ΔE00 3.51
Darkslateblue
#483D8B
ΔE00 5.04
Cobalt
#0047AB
ΔE00 5.51
Cobalt (survey)
#1E488F
ΔE00 5.90
Ocean Blue
#4F42B5
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E99 #998C31
analogous
#317299 #313E99 #583199
triadic
#313E99 #99313E #3E9931
tetradic
#313E99 #993172 #998C31 #319958
square
#313E99 #993172 #998C31 #319958
split-complementary
#313E99 #995831 #729931
monochromatic
#13183C #222B6B #313E99 #4454C3 #727ED2
Accessibility & contrast
On white
9.21
#313E99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#313E99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E99
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E99 | 1.00 | 9.21 | 2.28 | 9.21 |
| #FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #313e99; /* rgb */ color: rgb(49, 62, 153); /* oklch */ color: oklch(41.0% 0.148 272.0);
Tailwind
colors: {
custom: {
50: '#7673b8',
500: '#313e99',
950: '#000000',
},
}SCSS
$custom: #313e99; $custom-light: #7673b8; $custom-dark: #000000;
JSON
{
"hex": "#313e99",
"rgb": {
"r": 49,
"g": 62,
"b": 153
},
"hsl": {
"h": 232.5,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.40998,
"c": 0.14826,
"h": 272
},
"luminance": 0.06398
}Semantic roles & 50–950 ramp
primary
#313E99
secondary
#BAB06C
accent
#C94DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80