#334AB9#334AB9
#334AB9 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.1% C 0.177 H 269.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB9 |
|---|---|
| RGB | rgb(51, 74, 185) |
| HSL | hsl(230, 57%, 46%) |
| HSV | hsv(230, 72%, 73%) |
| CMYK | cmyk(72.4%, 60%, 0%, 27.5%) |
| CIE-LAB | lab(36.18, 29.81, -61.17) |
| CIE-LCH | lch(36.18, 68.04, 295.98°) |
| OKLab | oklab(46.14% -0.0023 -0.1765) |
| OKLCH | oklch(46.14% 0.177 269.3) |
| XYZ | xyz(12.5680, 9.1028, 46.9842) |
| Luminance | 0.0910 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.02
Cobalt
#0047AB
ΔE00 4.46
Sapphire
#0F52BA
ΔE00 4.65
Blue (survey)
#0343DF
ΔE00 5.02
Ocean Blue
#4F42B5
ΔE00 5.17
Sapphire (survey)
#2138AB
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB9 #B9A233
analogous
#338DB9 #334AB9 #5F33B9
triadic
#334AB9 #B9334A #4AB933
tetradic
#334AB9 #B9338D #B9A233 #33B95F
square
#334AB9 #B9338D #B9A233 #33B95F
split-complementary
#334AB9 #B95F33 #8DB933
monochromatic
#192459 #263789 #334AB9 #586DD1 #8897DE
Accessibility & contrast
On white
7.44
#334AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#334AB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB9
7.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB9 | 1.00 | 7.44 | 2.82 | 7.44 |
| #FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334ab9; /* rgb */ color: rgb(51, 74, 185); /* oklch */ color: oklch(46.1% 0.177 269.3);
Tailwind
colors: {
custom: {
50: '#7d7ccf',
500: '#334ab9',
950: '#000000',
},
}SCSS
$custom: #334ab9; $custom-light: #7d7ccf; $custom-dark: #000000;
JSON
{
"hex": "#334ab9",
"rgb": {
"r": 51,
"g": 74,
"b": 185
},
"hsl": {
"h": 229.701,
"s": 56.78,
"l": 46.275
},
"oklch": {
"l": 0.46135,
"c": 0.17654,
"h": 269.3
},
"luminance": 0.09104
}Semantic roles & 50–950 ramp
primary
#334AB9
secondary
#C8BC80
accent
#C648E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82