#334161#334161
#334161 is a dark, muted blue. Relative luminance 0.053; OKLCH L 37.8% C 0.058 H 265.6°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).
Color values
| HEX | #334161 |
|---|---|
| RGB | rgb(51, 65, 97) |
| HSL | hsl(222, 31%, 29%) |
| HSV | hsv(222, 47%, 38%) |
| CMYK | cmyk(47.4%, 33%, 0%, 62%) |
| CIE-LAB | lab(27.70, 3.99, -20.68) |
| CIE-LCH | lch(27.70, 21.07, 280.93°) |
| OKLab | oklab(37.81% -0.0044 -0.0579) |
| OKLCH | oklch(37.81% 0.058 265.6) |
| XYZ | xyz(5.4125, 5.3472, 12.0538) |
| Luminance | 0.0535 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine Blue
#01386A
ΔE00 7.28
Navy Blue
#1B2A4A
ΔE00 7.39
Twilight Blue
#0A437A
ΔE00 7.65
Marine
#042E60
ΔE00 8.00
Darkish Blue
#014182
ΔE00 8.26
Dusk
#4E5481
ΔE00 8.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334161 #615333
analogous
#335861 #334161 #3C3361
triadic
#334161 #613341 #416133
tetradic
#334161 #613358 #615333 #33613C
square
#334161 #613358 #615333 #33613C
split-complementary
#334161 #613C33 #586133
monochromatic
#0B0D14 #1E2639 #334161 #485C89 #6279AC
Accessibility & contrast
On white
10.15
#334161 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#334161 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334161
10.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334161 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334161 | 1.00 | 10.15 | 2.07 | 10.15 |
| #FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#354462
Deuteranopia (green-blind)
#314060
Tritanopia (blue-blind)
#22484C
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #334161; /* rgb */ color: rgb(51, 65, 97); /* oklch */ color: oklch(37.8% 0.058 265.6);
Tailwind
colors: {
custom: {
50: '#6d758e',
500: '#334161',
950: '#000000',
},
}SCSS
$custom: #334161; $custom-light: #6d758e; $custom-dark: #000000;
JSON
{
"hex": "#334161",
"rgb": {
"r": 51,
"g": 65,
"b": 97
},
"hsl": {
"h": 221.739,
"s": 31.081,
"l": 29.02
},
"oklch": {
"l": 0.37805,
"c": 0.05811,
"h": 265.6
},
"luminance": 0.05347
}Semantic roles & 50–950 ramp
primary
#334161
secondary
#92825E
accent
#A861C7
background
#F6F7F8
surface
#ECEDF0
border
#C7C8CB
text
#07080C
muted
#7A7B7D