#334699#334699
#334699 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.7% C 0.137 H 270.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #334699 |
|---|---|
| RGB | rgb(51, 70, 153) |
| HSL | hsl(229, 50%, 40%) |
| HSV | hsv(229, 67%, 60%) |
| CMYK | cmyk(66.7%, 54.2%, 0%, 40%) |
| CIE-LAB | lab(32.66, 20.67, -47.76) |
| CIE-LCH | lch(32.66, 52.04, 293.40°) |
| OKLab | oklab(42.73% -0.0001 -0.1372) |
| OKLCH | oklch(42.73% 0.137 270) |
| XYZ | xyz(9.3032, 7.3832, 31.0656) |
| Luminance | 0.0738 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.04
Cobalt
#0047AB
ΔE00 4.27
Blueberry
#464196
ΔE00 4.38
Sapphire (survey)
#2138AB
ΔE00 5.36
Darkslateblue
#483D8B
ΔE00 6.18
Darkish Blue
#014182
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334699 #998633
analogous
#337999 #334699 #533399
triadic
#334699 #993346 #469933
tetradic
#334699 #993379 #998633 #339953
square
#334699 #993379 #998633 #339953
split-complementary
#334699 #995333 #799933
monochromatic
#141C3D #24316B #334699 #475EC2 #7586D1
Accessibility & contrast
On white
8.48
#334699 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#334699 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334699
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334699 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334699 | 1.00 | 8.48 | 2.48 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E529C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #334699; /* rgb */ color: rgb(51, 70, 153); /* oklch */ color: oklch(42.7% 0.137 270.0);
Tailwind
colors: {
custom: {
50: '#7679b8',
500: '#334699',
950: '#000000',
},
}SCSS
$custom: #334699; $custom-light: #7679b8; $custom-dark: #000000;
JSON
{
"hex": "#334699",
"rgb": {
"r": 51,
"g": 70,
"b": 153
},
"hsl": {
"h": 228.824,
"s": 50,
"l": 40
},
"oklch": {
"l": 0.42729,
"c": 0.13718,
"h": 270
},
"luminance": 0.07384
}Semantic roles & 50–950 ramp
primary
#334699
secondary
#B9AB6E
accent
#C04EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80