#334497#334497
#334497 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.2% C 0.137 H 270.7°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).
Color values
| HEX | #334497 |
|---|---|
| RGB | rgb(51, 68, 151) |
| HSL | hsl(230, 50%, 40%) |
| HSV | hsv(230, 66%, 59%) |
| CMYK | cmyk(66.2%, 55%, 0%, 40.8%) |
| CIE-LAB | lab(31.97, 21.27, -47.67) |
| CIE-LCH | lch(31.97, 52.20, 294.05°) |
| OKLab | oklab(42.16% 0.0017 -0.1369) |
| OKLCH | oklch(42.16% 0.137 270.7) |
| XYZ | xyz(9.0164, 7.0716, 30.1620) |
| Luminance | 0.0707 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.96
Cobalt (survey)
#1E488F
ΔE00 4.37
Cobalt
#0047AB
ΔE00 4.67
Sapphire (survey)
#2138AB
ΔE00 5.04
Darkslateblue
#483D8B
ΔE00 5.66
Darkish Blue
#014182
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334497 #978633
analogous
#337697 #334497 #543397
triadic
#334497 #973344 #449733
tetradic
#334497 #973376 #978633 #339754
square
#334497 #973376 #978633 #339754
split-complementary
#334497 #975433 #769733
monochromatic
#141B3C #242F69 #334497 #475BC1 #7484D0
Accessibility & contrast
On white
8.70
#334497 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#334497 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334497
8.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334497 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334497 | 1.00 | 8.70 | 2.41 | 8.70 |
| #FFFFFF | 8.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#08509A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #334497; /* rgb */ color: rgb(51, 68, 151); /* oklch */ color: oklch(42.2% 0.137 270.7);
Tailwind
colors: {
custom: {
50: '#7677b6',
500: '#334497',
950: '#000000',
},
}SCSS
$custom: #334497; $custom-light: #7677b6; $custom-dark: #000000;
JSON
{
"hex": "#334497",
"rgb": {
"r": 51,
"g": 68,
"b": 151
},
"hsl": {
"h": 229.8,
"s": 49.505,
"l": 39.608
},
"oklch": {
"l": 0.4216,
"c": 0.13694,
"h": 270.7
},
"luminance": 0.07072
}Semantic roles & 50–950 ramp
primary
#334497
secondary
#B8AC6D
accent
#C24FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80