#313A9F#313A9F
#313A9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.162 H 272.9°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #313A9F |
|---|---|
| RGB | rgb(49, 58, 159) |
| HSL | hsl(235, 53%, 41%) |
| HSV | hsv(235, 69%, 62%) |
| CMYK | cmyk(69.2%, 63.5%, 0%, 37.6%) |
| CIE-LAB | lab(29.87, 30.50, -55.95) |
| CIE-LCH | lch(29.87, 63.73, 298.59°) |
| OKLab | oklab(40.76% 0.0083 -0.1614) |
| OKLCH | oklch(40.76% 0.162 272.9) |
| XYZ | xyz(9.0356, 6.1814, 33.5111) |
| Luminance | 0.0618 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.18
Blueberry
#464196
ΔE00 3.92
Darkslateblue
#483D8B
ΔE00 5.32
Ocean Blue
#4F42B5
ΔE00 5.56
Blue Blue
#2242C7
ΔE00 5.79
Cobalt
#0047AB
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313A9F #9F9631
analogous
#31719F #313A9F #5F319F
triadic
#313A9F #9F313A #3A9F31
tetradic
#313A9F #9F3171 #9F9631 #319F5F
square
#313A9F #9F3171 #9F9631 #319F5F
split-complementary
#313A9F #9F5F31 #719F31
monochromatic
#141841 #232970 #313A9F #4751C6 #767DD5
Accessibility & contrast
On white
9.39
#313A9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#313A9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313A9F
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313A9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313A9F | 1.00 | 9.39 | 2.24 | 9.39 |
| #FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #313a9f; /* rgb */ color: rgb(49, 58, 159); /* oklch */ color: oklch(40.8% 0.162 272.9);
Tailwind
colors: {
custom: {
50: '#7870bc',
500: '#313a9f',
950: '#000000',
},
}SCSS
$custom: #313a9f; $custom-light: #7870bc; $custom-dark: #000000;
JSON
{
"hex": "#313a9f",
"rgb": {
"r": 49,
"g": 58,
"b": 159
},
"hsl": {
"h": 235.091,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.40763,
"c": 0.16165,
"h": 272.9
},
"luminance": 0.06182
}Semantic roles & 50–950 ramp
primary
#313A9F
secondary
#BDB66F
accent
#D04CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81