#334399#334399
#334399 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.141 H 271.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #334399 |
|---|---|
| RGB | rgb(51, 67, 153) |
| HSL | hsl(231, 50%, 40%) |
| HSV | hsv(231, 67%, 60%) |
| CMYK | cmyk(66.7%, 56.2%, 0%, 40%) |
| CIE-LAB | lab(31.85, 22.67, -49.09) |
| CIE-LCH | lch(31.85, 54.07, 294.79°) |
| OKLab | oklab(42.12% 0.0028 -0.1411) |
| OKLCH | oklch(42.12% 0.141 271.1) |
| XYZ | xyz(9.1202, 7.0172, 31.0046) |
| Luminance | 0.0702 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.74
Sapphire (survey)
#2138AB
ΔE00 4.56
Cobalt
#0047AB
ΔE00 4.71
Cobalt (survey)
#1E488F
ΔE00 4.76
Darkslateblue
#483D8B
ΔE00 5.51
Blue Blue
#2242C7
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334399 #998933
analogous
#337699 #334399 #563399
triadic
#334399 #993343 #439933
tetradic
#334399 #993376 #998933 #339956
square
#334399 #993376 #998933 #339956
split-complementary
#334399 #995633 #769933
monochromatic
#141B3D #242F6B #334399 #475BC2 #7584D1
Accessibility & contrast
On white
8.74
#334399 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#334399 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334399
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334399 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334399 | 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)
#00509C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #334399; /* rgb */ color: rgb(51, 67, 153); /* oklch */ color: oklch(42.1% 0.141 271.1);
Tailwind
colors: {
custom: {
50: '#7776b8',
500: '#334399',
950: '#000000',
},
}SCSS
$custom: #334399; $custom-light: #7776b8; $custom-dark: #000000;
JSON
{
"hex": "#334399",
"rgb": {
"r": 51,
"g": 67,
"b": 153
},
"hsl": {
"h": 230.588,
"s": 50,
"l": 40
},
"oklch": {
"l": 0.42115,
"c": 0.14114,
"h": 271.1
},
"luminance": 0.07018
}Semantic roles & 50–950 ramp
primary
#334399
secondary
#B9AE6E
accent
#C44EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80