#334AB7#334AB7
#334AB7 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.0% C 0.174 H 269.2°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB7 |
|---|---|
| RGB | rgb(51, 74, 183) |
| HSL | hsl(230, 56%, 46%) |
| HSV | hsv(230, 72%, 72%) |
| CMYK | cmyk(72.1%, 59.6%, 0%, 28.2%) |
| CIE-LAB | lab(36.02, 29.08, -60.25) |
| CIE-LCH | lch(36.02, 66.90, 295.76°) |
| OKLab | oklab(45.97% -0.0023 -0.1738) |
| OKLCH | oklch(45.97% 0.174 269.2) |
| XYZ | xyz(12.3583, 9.0190, 45.8801) |
| Luminance | 0.0902 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.21
Cobalt
#0047AB
ΔE00 4.29
Sapphire
#0F52BA
ΔE00 4.59
Ocean Blue
#4F42B5
ΔE00 5.24
Blue (survey)
#0343DF
ΔE00 5.27
Sapphire (survey)
#2138AB
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB7 #B7A033
analogous
#338CB7 #334AB7 #5E33B7
triadic
#334AB7 #B7334A #4AB733
tetradic
#334AB7 #B7338C #B7A033 #33B75E
square
#334AB7 #B7338C #B7A033 #33B75E
split-complementary
#334AB7 #B75E33 #8CB733
monochromatic
#182357 #263787 #334AB7 #576CD0 #8796DE
Accessibility & contrast
On white
7.49
#334AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#334AB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB7
7.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB7 | 1.00 | 7.49 | 2.80 | 7.49 |
| #FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334ab7; /* rgb */ color: rgb(51, 74, 183); /* oklch */ color: oklch(46.0% 0.174 269.2);
Tailwind
colors: {
custom: {
50: '#7d7ccd',
500: '#334ab7',
950: '#000000',
},
}SCSS
$custom: #334ab7; $custom-light: #7d7ccd; $custom-dark: #000000;
JSON
{
"hex": "#334ab7",
"rgb": {
"r": 51,
"g": 74,
"b": 183
},
"hsl": {
"h": 229.545,
"s": 56.41,
"l": 45.882
},
"oklch": {
"l": 0.45965,
"c": 0.17386,
"h": 269.2
},
"luminance": 0.0902
}Semantic roles & 50–950 ramp
primary
#334AB7
secondary
#C7BB7F
accent
#C548E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82