#334AB2#334AB2
#334AB2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.167 H 269.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB2 |
|---|---|
| RGB | rgb(51, 74, 178) |
| HSL | hsl(229, 55%, 45%) |
| HSV | hsv(229, 71%, 70%) |
| CMYK | cmyk(71.3%, 58.4%, 0%, 30.2%) |
| CIE-LAB | lab(35.62, 27.24, -57.94) |
| CIE-LCH | lch(35.62, 64.03, 295.18°) |
| OKLab | oklab(45.55% -0.0024 -0.1671) |
| OKLCH | oklch(45.55% 0.167 269.2) |
| XYZ | xyz(11.8471, 8.8145, 43.1879) |
| Luminance | 0.0882 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.73
Cobalt
#0047AB
ΔE00 3.91
Sapphire
#0F52BA
ΔE00 4.52
Sapphire (survey)
#2138AB
ΔE00 5.40
Ocean Blue
#4F42B5
ΔE00 5.47
Blue (survey)
#0343DF
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB2 #B29B33
analogous
#338AB2 #334AB2 #5C33B2
triadic
#334AB2 #B2334A #4AB233
tetradic
#334AB2 #B2338A #B29B33 #33B25C
square
#334AB2 #B2338A #B29B33 #33B25C
split-complementary
#334AB2 #B25C33 #8AB233
monochromatic
#182253 #253682 #334AB2 #546ACE #8494DC
Accessibility & contrast
On white
7.60
#334AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#334AB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB2
7.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB2 | 1.00 | 7.60 | 2.76 | 7.60 |
| #FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334ab2; /* rgb */ color: rgb(51, 74, 178); /* oklch */ color: oklch(45.5% 0.167 269.2);
Tailwind
colors: {
custom: {
50: '#7c7cca',
500: '#334ab2',
950: '#000000',
},
}SCSS
$custom: #334ab2; $custom-light: #7c7cca; $custom-dark: #000000;
JSON
{
"hex": "#334ab2",
"rgb": {
"r": 51,
"g": 74,
"b": 178
},
"hsl": {
"h": 229.134,
"s": 55.459,
"l": 44.902
},
"oklch": {
"l": 0.45546,
"c": 0.16708,
"h": 269.2
},
"luminance": 0.08816
}Semantic roles & 50–950 ramp
primary
#334AB2
secondary
#C5B87C
accent
#C449DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82