#334AB5#334AB5
#334AB5 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.8% C 0.171 H 269.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB5 |
|---|---|
| RGB | rgb(51, 74, 181) |
| HSL | hsl(229, 56%, 45%) |
| HSV | hsv(229, 72%, 71%) |
| CMYK | cmyk(71.8%, 59.1%, 0%, 29%) |
| CIE-LAB | lab(35.86, 28.34, -59.33) |
| CIE-LCH | lch(35.86, 65.75, 295.54°) |
| OKLab | oklab(45.8% -0.0023 -0.1711) |
| OKLCH | oklch(45.8% 0.171 269.2) |
| XYZ | xyz(12.1516, 8.9363, 44.7916) |
| Luminance | 0.0894 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.40
Cobalt
#0047AB
ΔE00 4.13
Sapphire
#0F52BA
ΔE00 4.55
Ocean Blue
#4F42B5
ΔE00 5.32
Sapphire (survey)
#2138AB
ΔE00 5.44
Blue (survey)
#0343DF
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB5 #B59E33
analogous
#338BB5 #334AB5 #5D33B5
triadic
#334AB5 #B5334A #4AB533
tetradic
#334AB5 #B5338B #B59E33 #33B55D
square
#334AB5 #B5338B #B59E33 #33B55D
split-complementary
#334AB5 #B55D33 #8BB533
monochromatic
#182356 #263685 #334AB5 #566BCF #8695DD
Accessibility & contrast
On white
7.53
#334AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#334AB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB5
7.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB5 | 1.00 | 7.53 | 2.79 | 7.53 |
| #FFFFFF | 7.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334ab5; /* rgb */ color: rgb(51, 74, 181); /* oklch */ color: oklch(45.8% 0.171 269.2);
Tailwind
colors: {
custom: {
50: '#7c7ccc',
500: '#334ab5',
950: '#000000',
},
}SCSS
$custom: #334ab5; $custom-light: #7c7ccc; $custom-dark: #000000;
JSON
{
"hex": "#334ab5",
"rgb": {
"r": 51,
"g": 74,
"b": 181
},
"hsl": {
"h": 229.385,
"s": 56.034,
"l": 45.49
},
"oklch": {
"l": 0.45797,
"c": 0.17116,
"h": 269.2
},
"luminance": 0.08938
}Semantic roles & 50–950 ramp
primary
#334AB5
secondary
#C6B97D
accent
#C548DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82