#334496#334496
#334496 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.136 H 270.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #334496 |
|---|---|
| RGB | rgb(51, 68, 150) |
| HSL | hsl(230, 49%, 39%) |
| HSV | hsv(230, 66%, 59%) |
| CMYK | cmyk(66%, 54.7%, 0%, 41.2%) |
| CIE-LAB | lab(31.90, 20.90, -47.18) |
| CIE-LCH | lch(31.90, 51.60, 293.89°) |
| OKLab | oklab(42.08% 0.0016 -0.1355) |
| OKLCH | oklch(42.08% 0.136 270.7) |
| XYZ | xyz(8.9355, 7.0393, 29.7361) |
| Luminance | 0.0704 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.99
Cobalt (survey)
#1E488F
ΔE00 4.31
Cobalt
#0047AB
ΔE00 4.74
Sapphire (survey)
#2138AB
ΔE00 5.15
Darkslateblue
#483D8B
ΔE00 5.64
Darkish Blue
#014182
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334496 #968533
analogous
#337696 #334496 #543396
triadic
#334496 #963344 #449633
tetradic
#334496 #963376 #968533 #339654
square
#334496 #963376 #968533 #339654
split-complementary
#334496 #965433 #769633
monochromatic
#141B3B #232F68 #334496 #465BC0 #7484D0
Accessibility & contrast
On white
8.72
#334496 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#334496 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334496
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334496 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334496 | 1.00 | 8.72 | 2.41 | 8.72 |
| #FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B5099
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #334496; /* rgb */ color: rgb(51, 68, 150); /* oklch */ color: oklch(42.1% 0.136 270.7);
Tailwind
colors: {
custom: {
50: '#7677b5',
500: '#334496',
950: '#000000',
},
}SCSS
$custom: #334496; $custom-light: #7677b5; $custom-dark: #000000;
JSON
{
"hex": "#334496",
"rgb": {
"r": 51,
"g": 68,
"b": 150
},
"hsl": {
"h": 229.697,
"s": 49.254,
"l": 39.412
},
"oklch": {
"l": 0.42082,
"c": 0.1355,
"h": 270.7
},
"luminance": 0.0704
}Semantic roles & 50–950 ramp
primary
#334496
secondary
#B8AB6D
accent
#C14FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80