#334AB3#334AB3
#334AB3 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.168 H 269.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB3 |
|---|---|
| RGB | rgb(51, 74, 179) |
| HSL | hsl(229, 56%, 45%) |
| HSV | hsv(229, 72%, 70%) |
| CMYK | cmyk(71.5%, 58.7%, 0%, 29.8%) |
| CIE-LAB | lab(35.70, 27.61, -58.40) |
| CIE-LCH | lch(35.70, 64.60, 295.30°) |
| OKLab | oklab(45.63% -0.0024 -0.1684) |
| OKLCH | oklch(45.63% 0.168 269.2) |
| XYZ | xyz(11.9479, 8.8548, 43.7186) |
| Luminance | 0.0886 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.61
Cobalt
#0047AB
ΔE00 3.98
Sapphire
#0F52BA
ΔE00 4.53
Sapphire (survey)
#2138AB
ΔE00 5.41
Ocean Blue
#4F42B5
ΔE00 5.42
Blue (survey)
#0343DF
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB3 #B39C33
analogous
#338AB3 #334AB3 #5C33B3
triadic
#334AB3 #B3334A #4AB333
tetradic
#334AB3 #B3338A #B39C33 #33B35C
square
#334AB3 #B3338A #B39C33 #33B35C
split-complementary
#334AB3 #B35C33 #8AB333
monochromatic
#182354 #253683 #334AB3 #556BCE #8494DC
Accessibility & contrast
On white
7.58
#334AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#334AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB3
7.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB3 | 1.00 | 7.58 | 2.77 | 7.58 |
| #FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334ab3; /* rgb */ color: rgb(51, 74, 179); /* oklch */ color: oklch(45.6% 0.168 269.2);
Tailwind
colors: {
custom: {
50: '#7c7ccb',
500: '#334ab3',
950: '#000000',
},
}SCSS
$custom: #334ab3; $custom-light: #7c7ccb; $custom-dark: #000000;
JSON
{
"hex": "#334ab3",
"rgb": {
"r": 51,
"g": 74,
"b": 179
},
"hsl": {
"h": 229.219,
"s": 55.652,
"l": 45.098
},
"oklch": {
"l": 0.45629,
"c": 0.16844,
"h": 269.2
},
"luminance": 0.08856
}Semantic roles & 50–950 ramp
primary
#334AB3
secondary
#C6B87C
accent
#C449DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82