#334299#334299
#334299 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.142 H 271.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).
Color values
| HEX | #334299 |
|---|---|
| RGB | rgb(51, 66, 153) |
| HSL | hsl(231, 50%, 40%) |
| HSV | hsv(231, 67%, 60%) |
| CMYK | cmyk(66.7%, 56.9%, 0%, 40%) |
| CIE-LAB | lab(31.58, 23.34, -49.52) |
| CIE-LCH | lch(31.58, 54.75, 295.24°) |
| OKLab | oklab(41.91% 0.0037 -0.1424) |
| OKLCH | oklch(41.91% 0.142 271.5) |
| XYZ | xyz(9.0613, 6.8993, 30.9850) |
| Luminance | 0.0690 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.57
Sapphire (survey)
#2138AB
ΔE00 4.31
Cobalt
#0047AB
ΔE00 4.90
Cobalt (survey)
#1E488F
ΔE00 5.02
Darkslateblue
#483D8B
ΔE00 5.32
Blue Blue
#2242C7
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334299 #998A33
analogous
#337599 #334299 #573399
triadic
#334299 #993342 #429933
tetradic
#334299 #993375 #998A33 #339957
square
#334299 #993375 #998A33 #339957
split-complementary
#334299 #995733 #759933
monochromatic
#141A3D #242E6B #334299 #4759C2 #7583D1
Accessibility & contrast
On white
8.82
#334299 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#334299 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334299
8.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334299 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334299 | 1.00 | 8.82 | 2.38 | 8.82 |
| #FFFFFF | 8.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #334299; /* rgb */ color: rgb(51, 66, 153); /* oklch */ color: oklch(41.9% 0.142 271.5);
Tailwind
colors: {
custom: {
50: '#7776b8',
500: '#334299',
950: '#000000',
},
}SCSS
$custom: #334299; $custom-light: #7776b8; $custom-dark: #000000;
JSON
{
"hex": "#334299",
"rgb": {
"r": 51,
"g": 66,
"b": 153
},
"hsl": {
"h": 231.176,
"s": 50,
"l": 40
},
"oklch": {
"l": 0.41913,
"c": 0.14246,
"h": 271.5
},
"luminance": 0.069
}Semantic roles & 50–950 ramp
primary
#334299
secondary
#B9AE6E
accent
#C54EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80