#313F99#313F99
#313F99 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.147 H 271.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).
Color values
| HEX | #313F99 |
|---|---|
| RGB | rgb(49, 63, 153) |
| HSL | hsl(232, 51%, 40%) |
| HSV | hsv(232, 68%, 60%) |
| CMYK | cmyk(68%, 58.8%, 0%, 40%) |
| CIE-LAB | lab(30.66, 25.02, -51.02) |
| CIE-LCH | lch(30.66, 56.82, 296.12°) |
| OKLab | oklab(41.2% 0.0042 -0.1469) |
| OKLCH | oklch(41.2% 0.147 271.6) |
| XYZ | xyz(8.7920, 6.5071, 30.9235) |
| Luminance | 0.0651 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.55
Sapphire (survey)
#2138AB
ΔE00 3.62
Darkslateblue
#483D8B
ΔE00 5.15
Cobalt
#0047AB
ΔE00 5.28
Cobalt (survey)
#1E488F
ΔE00 5.61
Ocean Blue
#4F42B5
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F99 #998B31
analogous
#317399 #313F99 #573199
triadic
#313F99 #99313F #3F9931
tetradic
#313F99 #993173 #998B31 #319957
square
#313F99 #993173 #998B31 #319957
split-complementary
#313F99 #995731 #739931
monochromatic
#13193C #222C6B #313F99 #4455C3 #727FD2
Accessibility & contrast
On white
9.12
#313F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#313F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F99
9.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F99 | 1.00 | 9.12 | 2.30 | 9.12 |
| #FFFFFF | 9.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #313f99; /* rgb */ color: rgb(49, 63, 153); /* oklch */ color: oklch(41.2% 0.147 271.6);
Tailwind
colors: {
custom: {
50: '#7673b8',
500: '#313f99',
950: '#000000',
},
}SCSS
$custom: #313f99; $custom-light: #7673b8; $custom-dark: #000000;
JSON
{
"hex": "#313f99",
"rgb": {
"r": 49,
"g": 63,
"b": 153
},
"hsl": {
"h": 231.923,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.41195,
"c": 0.14696,
"h": 271.6
},
"luminance": 0.06508
}Semantic roles & 50–950 ramp
primary
#313F99
secondary
#BAAF6C
accent
#C84DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80