#334BB4#334BB4
#334BB4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.169 H 268.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).
Color values
| HEX | #334BB4 |
|---|---|
| RGB | rgb(51, 75, 180) |
| HSL | hsl(229, 56%, 45%) |
| HSV | hsv(229, 72%, 71%) |
| CMYK | cmyk(71.7%, 58.3%, 0%, 29.4%) |
| CIE-LAB | lab(36.04, 27.32, -58.44) |
| CIE-LCH | lch(36.04, 64.52, 295.06°) |
| OKLab | oklab(45.91% -0.0031 -0.1685) |
| OKLCH | oklch(45.91% 0.169 268.9) |
| XYZ | xyz(12.1167, 9.0300, 44.2756) |
| Luminance | 0.0903 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.74
Cobalt
#0047AB
ΔE00 4.01
Sapphire
#0F52BA
ΔE00 4.27
Ocean Blue
#4F42B5
ΔE00 5.61
Sapphire (survey)
#2138AB
ΔE00 5.73
Blue (survey)
#0343DF
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BB4 #B49C33
analogous
#338CB4 #334BB4 #5B33B4
triadic
#334BB4 #B4334B #4BB433
tetradic
#334BB4 #B4338C #B49C33 #33B45B
square
#334BB4 #B4338C #B49C33 #33B45B
split-complementary
#334BB4 #B45B33 #8CB433
monochromatic
#182355 #253784 #334BB4 #556CCF #8595DC
Accessibility & contrast
On white
7.48
#334BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#334BB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BB4
7.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BB4 | 1.00 | 7.48 | 2.81 | 7.48 |
| #FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334bb4; /* rgb */ color: rgb(51, 75, 180); /* oklch */ color: oklch(45.9% 0.169 268.9);
Tailwind
colors: {
custom: {
50: '#7c7dcb',
500: '#334bb4',
950: '#000000',
},
}SCSS
$custom: #334bb4; $custom-light: #7c7dcb; $custom-dark: #000000;
JSON
{
"hex": "#334bb4",
"rgb": {
"r": 51,
"g": 75,
"b": 180
},
"hsl": {
"h": 228.837,
"s": 55.844,
"l": 45.294
},
"oklch": {
"l": 0.45907,
"c": 0.16855,
"h": 268.9
},
"luminance": 0.09031
}Semantic roles & 50–950 ramp
primary
#334BB4
secondary
#C6B87D
accent
#C349DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82