#334CB0#334CB0
#334CB0 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.162 H 268.6°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB0 |
|---|---|
| RGB | rgb(51, 76, 176) |
| HSL | hsl(228, 55%, 45%) |
| HSV | hsv(228, 71%, 69%) |
| CMYK | cmyk(71%, 56.8%, 0%, 31%) |
| CIE-LAB | lab(36.00, 25.19, -56.15) |
| CIE-LCH | lch(36.00, 61.54, 294.17°) |
| OKLab | oklab(45.78% -0.004 -0.1618) |
| OKLCH | oklch(45.78% 0.162 268.6) |
| XYZ | xyz(11.7835, 9.0061, 42.1832) |
| Luminance | 0.0901 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.74
Sapphire
#0F52BA
ΔE00 3.99
Blue Blue
#2242C7
ΔE00 4.40
Cobalt (survey)
#1E488F
ΔE00 5.77
Sapphire (survey)
#2138AB
ΔE00 6.03
Ocean Blue
#4F42B5
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB0 #B09733
analogous
#338BB0 #334CB0 #5933B0
triadic
#334CB0 #B0334C #4CB033
tetradic
#334CB0 #B0338B #B09733 #33B059
square
#334CB0 #B0338B #B09733 #33B059
split-complementary
#334CB0 #B05933 #8BB033
monochromatic
#182351 #253881 #334CB0 #536BCD #8294DB
Accessibility & contrast
On white
7.50
#334CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#334CB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB0
7.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB0 | 1.00 | 7.50 | 2.80 | 7.50 |
| #FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334cb0; /* rgb */ color: rgb(51, 76, 176); /* oklch */ color: oklch(45.8% 0.162 268.6);
Tailwind
colors: {
custom: {
50: '#7b7dc8',
500: '#334cb0',
950: '#000000',
},
}SCSS
$custom: #334cb0; $custom-light: #7b7dc8; $custom-dark: #000000;
JSON
{
"hex": "#334cb0",
"rgb": {
"r": 51,
"g": 76,
"b": 176
},
"hsl": {
"h": 228,
"s": 55.066,
"l": 44.51
},
"oklch": {
"l": 0.45775,
"c": 0.16182,
"h": 268.6
},
"luminance": 0.09007
}Semantic roles & 50–950 ramp
primary
#334CB0
secondary
#C4B67B
accent
#C149DE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82