#334AB0#334AB0
#334AB0 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.164 H 269.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).
Color values
| HEX | #334AB0 |
|---|---|
| RGB | rgb(51, 74, 176) |
| HSL | hsl(229, 55%, 45%) |
| HSV | hsv(229, 71%, 69%) |
| CMYK | cmyk(71%, 58%, 0%, 31%) |
| CIE-LAB | lab(35.47, 26.51, -57.01) |
| CIE-LCH | lch(35.47, 62.87, 294.94°) |
| OKLab | oklab(45.38% -0.0024 -0.1643) |
| OKLCH | oklch(45.38% 0.164 269.2) |
| XYZ | xyz(11.6478, 8.7348, 42.1380) |
| Luminance | 0.0874 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.79
Blue Blue
#2242C7
ΔE00 3.95
Sapphire
#0F52BA
ΔE00 4.52
Sapphire (survey)
#2138AB
ΔE00 5.39
Ocean Blue
#4F42B5
ΔE00 5.59
Cobalt (survey)
#1E488F
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AB0 #B09933
analogous
#3389B0 #334AB0 #5B33B0
triadic
#334AB0 #B0334A #4AB033
tetradic
#334AB0 #B03389 #B09933 #33B05B
square
#334AB0 #B03389 #B09933 #33B05B
split-complementary
#334AB0 #B05B33 #89B033
monochromatic
#182251 #253681 #334AB0 #536ACD #8293DB
Accessibility & contrast
On white
7.64
#334AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#334AB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AB0
7.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AB0 | 1.00 | 7.64 | 2.75 | 7.64 |
| #FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #334ab0; /* rgb */ color: rgb(51, 74, 176); /* oklch */ color: oklch(45.4% 0.164 269.2);
Tailwind
colors: {
custom: {
50: '#7b7cc8',
500: '#334ab0',
950: '#000000',
},
}SCSS
$custom: #334ab0; $custom-light: #7b7cc8; $custom-dark: #000000;
JSON
{
"hex": "#334ab0",
"rgb": {
"r": 51,
"g": 74,
"b": 176
},
"hsl": {
"h": 228.96,
"s": 55.066,
"l": 44.51
},
"oklch": {
"l": 0.4538,
"c": 0.16434,
"h": 269.2
},
"luminance": 0.08736
}Semantic roles & 50–950 ramp
primary
#334AB0
secondary
#C4B77B
accent
#C349DE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82