#334AB4#334AB4
#334AB4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.170 H 269.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB4 |
|---|---|
| RGB | rgb(51, 74, 180) |
| HSL | hsl(229, 56%, 45%) |
| HSV | hsv(229, 72%, 71%) |
| CMYK | cmyk(71.7%, 58.9%, 0%, 29.4%) |
| CIE-LAB | lab(35.78, 27.98, -58.87) |
| CIE-LCH | lch(35.78, 65.18, 295.42°) |
| OKLab | oklab(45.71% -0.0023 -0.1698) |
| OKLCH | oklch(45.71% 0.17 269.2) |
| XYZ | xyz(12.0494, 8.8954, 44.2531) |
| Luminance | 0.0890 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.51
Cobalt
#0047AB
ΔE00 4.05
Sapphire
#0F52BA
ΔE00 4.54
Ocean Blue
#4F42B5
ΔE00 5.37
Sapphire (survey)
#2138AB
ΔE00 5.43
Blue (survey)
#0343DF
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB4 #B49D33
analogous
#338BB4 #334AB4 #5C33B4
triadic
#334AB4 #B4334A #4AB433
tetradic
#334AB4 #B4338B #B49D33 #33B45C
square
#334AB4 #B4338B #B49D33 #33B45C
split-complementary
#334AB4 #B45C33 #8BB433
monochromatic
#182355 #253684 #334AB4 #556BCF #8595DC
Accessibility & contrast
On white
7.56
#334AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#334AB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB4
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB4 | 1.00 | 7.56 | 2.78 | 7.56 |
| #FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334ab4; /* rgb */ color: rgb(51, 74, 180); /* oklch */ color: oklch(45.7% 0.170 269.2);
Tailwind
colors: {
custom: {
50: '#7c7ccb',
500: '#334ab4',
950: '#000000',
},
}SCSS
$custom: #334ab4; $custom-light: #7c7ccb; $custom-dark: #000000;
JSON
{
"hex": "#334ab4",
"rgb": {
"r": 51,
"g": 74,
"b": 180
},
"hsl": {
"h": 229.302,
"s": 55.844,
"l": 45.294
},
"oklch": {
"l": 0.45713,
"c": 0.1698,
"h": 269.2
},
"luminance": 0.08897
}Semantic roles & 50–950 ramp
primary
#334AB4
secondary
#C6B97D
accent
#C449DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82