#334498#334498
#334498 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.2% C 0.138 H 270.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #334498 |
|---|---|
| RGB | rgb(51, 68, 152) |
| HSL | hsl(230, 50%, 40%) |
| HSV | hsv(230, 66%, 60%) |
| CMYK | cmyk(66.4%, 55.3%, 0%, 40.4%) |
| CIE-LAB | lab(32.04, 21.64, -48.16) |
| CIE-LCH | lch(32.04, 52.80, 294.19°) |
| OKLab | oklab(42.24% 0.0018 -0.1384) |
| OKLCH | oklch(42.24% 0.138 270.7) |
| XYZ | xyz(9.0979, 7.1042, 30.5915) |
| Luminance | 0.0711 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.94
Cobalt (survey)
#1E488F
ΔE00 4.44
Cobalt
#0047AB
ΔE00 4.61
Sapphire (survey)
#2138AB
ΔE00 4.92
Darkslateblue
#483D8B
ΔE00 5.69
Blue Blue
#2242C7
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334498 #988733
analogous
#337798 #334498 #553398
triadic
#334498 #983344 #449833
tetradic
#334498 #983377 #988733 #339855
square
#334498 #983377 #988733 #339855
split-complementary
#334498 #985533 #779833
monochromatic
#141B3C #242F6A #334498 #475CC1 #7584D1
Accessibility & contrast
On white
8.67
#334498 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#334498 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334498
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334498 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334498 | 1.00 | 8.67 | 2.42 | 8.67 |
| #FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#05509B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #334498; /* rgb */ color: rgb(51, 68, 152); /* oklch */ color: oklch(42.2% 0.138 270.7);
Tailwind
colors: {
custom: {
50: '#7677b7',
500: '#334498',
950: '#000000',
},
}SCSS
$custom: #334498; $custom-light: #7677b7; $custom-dark: #000000;
JSON
{
"hex": "#334498",
"rgb": {
"r": 51,
"g": 68,
"b": 152
},
"hsl": {
"h": 229.901,
"s": 49.754,
"l": 39.804
},
"oklch": {
"l": 0.42239,
"c": 0.13838,
"h": 270.7
},
"luminance": 0.07105
}Semantic roles & 50–950 ramp
primary
#334498
secondary
#B9AC6E
accent
#C24FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80