#334495#334495
#334495 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.0% C 0.134 H 270.7°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #334495 |
|---|---|
| RGB | rgb(51, 68, 149) |
| HSL | hsl(230, 49%, 39%) |
| HSV | hsv(230, 66%, 58%) |
| CMYK | cmyk(65.8%, 54.4%, 0%, 41.6%) |
| CIE-LAB | lab(31.82, 20.53, -46.69) |
| CIE-LCH | lch(31.82, 51.00, 293.74°) |
| OKLab | oklab(42% 0.0016 -0.134) |
| OKLCH | oklch(42% 0.134 270.7) |
| XYZ | xyz(8.8553, 7.0072, 29.3138) |
| Luminance | 0.0701 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.02
Cobalt (survey)
#1E488F
ΔE00 4.25
Cobalt
#0047AB
ΔE00 4.82
Sapphire (survey)
#2138AB
ΔE00 5.27
Darkslateblue
#483D8B
ΔE00 5.62
Darkish Blue
#014182
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334495 #958433
analogous
#337595 #334495 #533395
triadic
#334495 #953344 #449533
tetradic
#334495 #953375 #958433 #339553
square
#334495 #953375 #958433 #339553
split-complementary
#334495 #955333 #759533
monochromatic
#141A3A #232F67 #334495 #465BC0 #7383CF
Accessibility & contrast
On white
8.74
#334495 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#334495 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334495
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334495 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334495 | 1.00 | 8.74 | 2.40 | 8.74 |
| #FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E4F98
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#005765
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #334495; /* rgb */ color: rgb(51, 68, 149); /* oklch */ color: oklch(42.0% 0.134 270.7);
Tailwind
colors: {
custom: {
50: '#7677b5',
500: '#334495',
950: '#000000',
},
}SCSS
$custom: #334495; $custom-light: #7677b5; $custom-dark: #000000;
JSON
{
"hex": "#334495",
"rgb": {
"r": 51,
"g": 68,
"b": 149
},
"hsl": {
"h": 229.592,
"s": 49,
"l": 39.216
},
"oklch": {
"l": 0.42004,
"c": 0.13406,
"h": 270.7
},
"luminance": 0.07008
}Semantic roles & 50–950 ramp
primary
#334495
secondary
#B7AA6C
accent
#C14FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80