#334AB1#334AB1
#334AB1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.166 H 269.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB1 |
|---|---|
| RGB | rgb(51, 74, 177) |
| HSL | hsl(229, 55%, 45%) |
| HSV | hsv(229, 71%, 69%) |
| CMYK | cmyk(71.2%, 58.2%, 0%, 30.6%) |
| CIE-LAB | lab(35.55, 26.88, -57.47) |
| CIE-LCH | lch(35.55, 63.45, 295.06°) |
| OKLab | oklab(45.46% -0.0024 -0.1657) |
| OKLCH | oklch(45.46% 0.166 269.2) |
| XYZ | xyz(11.7471, 8.7745, 42.6610) |
| Luminance | 0.0878 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.84
Cobalt
#0047AB
ΔE00 3.85
Sapphire
#0F52BA
ΔE00 4.52
Sapphire (survey)
#2138AB
ΔE00 5.40
Ocean Blue
#4F42B5
ΔE00 5.53
Blueberry
#464196
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB1 #B19A33
analogous
#3389B1 #334AB1 #5B33B1
triadic
#334AB1 #B1334A #4AB133
tetradic
#334AB1 #B13389 #B19A33 #33B15B
square
#334AB1 #B13389 #B19A33 #33B15B
split-complementary
#334AB1 #B15B33 #89B133
monochromatic
#182252 #253681 #334AB1 #546ACE #8393DB
Accessibility & contrast
On white
7.62
#334AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#334AB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB1
7.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB1 | 1.00 | 7.62 | 2.76 | 7.62 |
| #FFFFFF | 7.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334ab1; /* rgb */ color: rgb(51, 74, 177); /* oklch */ color: oklch(45.5% 0.166 269.2);
Tailwind
colors: {
custom: {
50: '#7b7cc9',
500: '#334ab1',
950: '#000000',
},
}SCSS
$custom: #334ab1; $custom-light: #7b7cc9; $custom-dark: #000000;
JSON
{
"hex": "#334ab1",
"rgb": {
"r": 51,
"g": 74,
"b": 177
},
"hsl": {
"h": 229.048,
"s": 55.263,
"l": 44.706
},
"oklch": {
"l": 0.45463,
"c": 0.16571,
"h": 269.2
},
"luminance": 0.08776
}Semantic roles & 50–950 ramp
primary
#334AB1
secondary
#C5B77B
accent
#C349DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82