#334AB6#334AB6
#334AB6 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.173 H 269.2°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB6 |
|---|---|
| RGB | rgb(51, 74, 182) |
| HSL | hsl(229, 56%, 46%) |
| HSV | hsv(229, 72%, 71%) |
| CMYK | cmyk(72%, 59.3%, 0%, 28.6%) |
| CIE-LAB | lab(35.94, 28.71, -59.79) |
| CIE-LCH | lch(35.94, 66.33, 295.65°) |
| OKLab | oklab(45.88% -0.0023 -0.1725) |
| OKLCH | oklch(45.88% 0.173 269.2) |
| XYZ | xyz(12.2546, 8.9775, 45.3339) |
| Luminance | 0.0898 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.30
Cobalt
#0047AB
ΔE00 4.21
Sapphire
#0F52BA
ΔE00 4.57
Ocean Blue
#4F42B5
ΔE00 5.28
Blue (survey)
#0343DF
ΔE00 5.39
Sapphire (survey)
#2138AB
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB6 #B69F33
analogous
#338BB6 #334AB6 #5E33B6
triadic
#334AB6 #B6334A #4AB633
tetradic
#334AB6 #B6338B #B69F33 #33B65E
square
#334AB6 #B6338B #B69F33 #33B65E
split-complementary
#334AB6 #B65E33 #8BB633
monochromatic
#182356 #263786 #334AB6 #566CD0 #8695DD
Accessibility & contrast
On white
7.51
#334AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#334AB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB6
7.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB6 | 1.00 | 7.51 | 2.80 | 7.51 |
| #FFFFFF | 7.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334ab6; /* rgb */ color: rgb(51, 74, 182); /* oklch */ color: oklch(45.9% 0.173 269.2);
Tailwind
colors: {
custom: {
50: '#7c7ccd',
500: '#334ab6',
950: '#000000',
},
}SCSS
$custom: #334ab6; $custom-light: #7c7ccd; $custom-dark: #000000;
JSON
{
"hex": "#334ab6",
"rgb": {
"r": 51,
"g": 74,
"b": 182
},
"hsl": {
"h": 229.466,
"s": 56.223,
"l": 45.686
},
"oklch": {
"l": 0.45881,
"c": 0.17251,
"h": 269.2
},
"luminance": 0.08979
}Semantic roles & 50–950 ramp
primary
#334AB6
secondary
#C7BA7E
accent
#C548E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82