#334899#334899
#334899 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.135 H 269.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).
Color values
| HEX | #334899 |
|---|---|
| RGB | rgb(51, 72, 153) |
| HSL | hsl(228, 50%, 40%) |
| HSV | hsv(228, 67%, 60%) |
| CMYK | cmyk(66.7%, 52.9%, 0%, 40%) |
| CIE-LAB | lab(33.22, 19.33, -46.87) |
| CIE-LCH | lch(33.22, 50.70, 292.42°) |
| OKLab | oklab(43.15% -0.002 -0.1345) |
| OKLCH | oklch(43.15% 0.135 269.1) |
| XYZ | xyz(9.4304, 7.6376, 31.1080) |
| Luminance | 0.0764 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.65
Cobalt
#0047AB
ΔE00 4.08
Blueberry
#464196
ΔE00 4.90
Sapphire (survey)
#2138AB
ΔE00 5.94
Dusk Blue
#26538D
ΔE00 6.06
Sapphire
#0F52BA
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334899 #998433
analogous
#337B99 #334899 #513399
triadic
#334899 #993348 #489933
tetradic
#334899 #99337B #998433 #339951
square
#334899 #99337B #998433 #339951
split-complementary
#334899 #995133 #7B9933
monochromatic
#141D3D #24326B #334899 #4761C2 #7588D1
Accessibility & contrast
On white
8.31
#334899 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.53
#334899 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334899
8.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334899 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334899 | 1.00 | 8.31 | 2.53 | 8.31 |
| #FFFFFF | 8.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#16539C
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #334899; /* rgb */ color: rgb(51, 72, 153); /* oklch */ color: oklch(43.1% 0.135 269.1);
Tailwind
colors: {
custom: {
50: '#767ab8',
500: '#334899',
950: '#000000',
},
}SCSS
$custom: #334899; $custom-light: #767ab8; $custom-dark: #000000;
JSON
{
"hex": "#334899",
"rgb": {
"r": 51,
"g": 72,
"b": 153
},
"hsl": {
"h": 227.647,
"s": 50,
"l": 40
},
"oklch": {
"l": 0.43146,
"c": 0.13453,
"h": 269.1
},
"luminance": 0.07638
}Semantic roles & 50–950 ramp
primary
#334899
secondary
#B9AA6E
accent
#BD4EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80