#334A9E#334A9E
#334A9E is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.139 H 268.6°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).
Color values
| HEX | #334A9E |
|---|---|
| RGB | rgb(51, 74, 158) |
| HSL | hsl(227, 51%, 41%) |
| HSV | hsv(227, 68%, 62%) |
| CMYK | cmyk(67.7%, 53.2%, 0%, 38%) |
| CIE-LAB | lab(34.13, 19.85, -48.42) |
| CIE-LCH | lch(34.13, 52.33, 292.29°) |
| OKLab | oklab(43.95% -0.0035 -0.1391) |
| OKLCH | oklch(43.95% 0.139 268.6) |
| XYZ | xyz(9.9835, 8.0690, 33.3725) |
| Luminance | 0.0807 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.68
Cobalt (survey)
#1E488F
ΔE00 3.82
Sapphire
#0F52BA
ΔE00 5.25
Blueberry
#464196
ΔE00 5.38
Dusk Blue
#26538D
ΔE00 5.78
Sapphire (survey)
#2138AB
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334A9E #9E8733
analogous
#337F9E #334A9E #51339E
triadic
#334A9E #9E334A #4A9E33
tetradic
#334A9E #9E337F #9E8733 #339E51
square
#334A9E #9E337F #9E8733 #339E51
split-complementary
#334A9E #9E5133 #7F9E33
monochromatic
#151F41 #243470 #334A9E #4A64C4 #788CD3
Accessibility & contrast
On white
8.03
#334A9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#334A9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334A9E
8.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334A9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334A9E | 1.00 | 8.03 | 2.61 | 8.03 |
| #FFFFFF | 8.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1455A1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#005E6C
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #334a9e; /* rgb */ color: rgb(51, 74, 158); /* oklch */ color: oklch(43.9% 0.139 268.6);
Tailwind
colors: {
custom: {
50: '#777cbb',
500: '#334a9e',
950: '#000000',
},
}SCSS
$custom: #334a9e; $custom-light: #777cbb; $custom-dark: #000000;
JSON
{
"hex": "#334a9e",
"rgb": {
"r": 51,
"g": 74,
"b": 158
},
"hsl": {
"h": 227.103,
"s": 51.196,
"l": 40.98
},
"oklch": {
"l": 0.43947,
"c": 0.1391,
"h": 268.6
},
"luminance": 0.0807
}Semantic roles & 50–950 ramp
primary
#334A9E
secondary
#BCAC71
accent
#BC4DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0912
muted
#7C7B81