#313374#313374
#313374 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.109 H 278.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).
Color values
| HEX | #313374 |
|---|---|
| RGB | rgb(49, 51, 116) |
| HSL | hsl(238, 41%, 32%) |
| HSV | hsv(238, 58%, 45%) |
| CMYK | cmyk(57.8%, 56%, 0%, 54.5%) |
| CIE-LAB | lab(24.58, 19.67, -37.84) |
| CIE-LCH | lch(24.58, 42.64, 297.46°) |
| OKLab | oklab(35.76% 0.0152 -0.1082) |
| OKLCH | oklch(35.76% 0.109 278) |
| XYZ | xyz(5.6018, 4.2812, 17.0508) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.44
Blueberry
#464196
ΔE00 6.73
Marine
#042E60
ΔE00 7.26
Midnight Blue
#191970
ΔE00 7.74
Navy Blue
#1B2A4A
ΔE00 8.53
Marine Blue
#01386A
ΔE00 8.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313374 #747231
analogous
#315574 #313374 #513174
triadic
#313374 #743133 #337431
tetradic
#313374 #743155 #747231 #317451
square
#313374 #743155 #747231 #317451
split-complementary
#313374 #745131 #557431
monochromatic
#0D0D1E #1F2049 #313374 #43469F #6365BD
Accessibility & contrast
On white
11.31
#313374 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#313374 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313374
11.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313374 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313374 | 1.00 | 11.31 | 1.86 | 11.31 |
| #FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C3D76
Deuteranopia (green-blind)
#003873
Tritanopia (blue-blind)
#0F424E
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #313374; /* rgb */ color: rgb(49, 51, 116); /* oklch */ color: oklch(35.8% 0.109 278.0);
Tailwind
colors: {
custom: {
50: '#6f6a9c',
500: '#313374',
950: '#000000',
},
}SCSS
$custom: #313374; $custom-light: #6f6a9c; $custom-dark: #000000;
JSON
{
"hex": "#313374",
"rgb": {
"r": 49,
"g": 51,
"b": 116
},
"hsl": {
"h": 238.209,
"s": 40.606,
"l": 32.353
},
"oklch": {
"l": 0.35761,
"c": 0.10931,
"h": 278
},
"luminance": 0.04282
}Semantic roles & 50–950 ramp
primary
#313374
secondary
#A4A25C
accent
#CD57D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E