#334A99#334A99
#334A99 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.6% C 0.132 H 268.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).
Color values
| HEX | #334A99 |
|---|---|
| RGB | rgb(51, 74, 153) |
| HSL | hsl(226, 50%, 40%) |
| HSV | hsv(226, 67%, 60%) |
| CMYK | cmyk(66.7%, 51.6%, 0%, 40%) |
| CIE-LAB | lab(33.77, 18.00, -45.97) |
| CIE-LCH | lch(33.77, 49.37, 291.38°) |
| OKLab | oklab(43.57% -0.004 -0.1318) |
| OKLCH | oklch(43.57% 0.132 268.3) |
| XYZ | xyz(9.5618, 7.9004, 31.1518) |
| Luminance | 0.0790 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.37
Cobalt
#0047AB
ΔE00 4.00
Dusk Blue
#26538D
ΔE00 5.44
Blueberry
#464196
ΔE00 5.47
Sapphire
#0F52BA
ΔE00 5.66
Denim Blue
#3B5B92
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334A99 #998233
analogous
#337D99 #334A99 #4F3399
triadic
#334A99 #99334A #4A9933
tetradic
#334A99 #99337D #998233 #33994F
square
#334A99 #99337D #998233 #33994F
split-complementary
#334A99 #994F33 #7D9933
monochromatic
#141E3D #24346B #334A99 #4763C2 #758AD1
Accessibility & contrast
On white
8.14
#334A99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#334A99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334A99
8.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334A99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334A99 | 1.00 | 8.14 | 2.58 | 8.14 |
| #FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C549C
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#005C6A
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #334a99; /* rgb */ color: rgb(51, 74, 153); /* oklch */ color: oklch(43.6% 0.132 268.3);
Tailwind
colors: {
custom: {
50: '#767cb8',
500: '#334a99',
950: '#000000',
},
}SCSS
$custom: #334a99; $custom-light: #767cb8; $custom-dark: #000000;
JSON
{
"hex": "#334a99",
"rgb": {
"r": 51,
"g": 74,
"b": 153
},
"hsl": {
"h": 226.471,
"s": 50,
"l": 40
},
"oklch": {
"l": 0.43569,
"c": 0.1319,
"h": 268.3
},
"luminance": 0.07901
}Semantic roles & 50–950 ramp
primary
#334A99
secondary
#B9A86E
accent
#BA4EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80