#334BB5#334BB5
#334BB5 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.170 H 269.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).
Color values
| HEX | #334BB5 |
|---|---|
| RGB | rgb(51, 75, 181) |
| HSL | hsl(229, 56%, 45%) |
| HSV | hsv(229, 72%, 71%) |
| CMYK | cmyk(71.8%, 58.6%, 0%, 29%) |
| CIE-LAB | lab(36.12, 27.69, -58.91) |
| CIE-LCH | lch(36.12, 65.09, 295.18°) |
| OKLab | oklab(45.99% -0.0031 -0.1699) |
| OKLCH | oklch(45.99% 0.17 269) |
| XYZ | xyz(12.2189, 9.0709, 44.8140) |
| Luminance | 0.0907 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.64
Cobalt
#0047AB
ΔE00 4.08
Sapphire
#0F52BA
ΔE00 4.28
Ocean Blue
#4F42B5
ΔE00 5.56
Blue (survey)
#0343DF
ΔE00 5.64
Sapphire (survey)
#2138AB
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BB5 #B59D33
analogous
#338CB5 #334BB5 #5C33B5
triadic
#334BB5 #B5334B #4BB533
tetradic
#334BB5 #B5338C #B59D33 #33B55C
square
#334BB5 #B5338C #B59D33 #33B55C
split-complementary
#334BB5 #B55C33 #8CB533
monochromatic
#182356 #263785 #334BB5 #566CCF #8696DD
Accessibility & contrast
On white
7.46
#334BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#334BB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BB5
7.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BB5 | 1.00 | 7.46 | 2.81 | 7.46 |
| #FFFFFF | 7.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334bb5; /* rgb */ color: rgb(51, 75, 181); /* oklch */ color: oklch(46.0% 0.170 269.0);
Tailwind
colors: {
custom: {
50: '#7c7dcc',
500: '#334bb5',
950: '#000000',
},
}SCSS
$custom: #334bb5; $custom-light: #7c7dcc; $custom-dark: #000000;
JSON
{
"hex": "#334bb5",
"rgb": {
"r": 51,
"g": 75,
"b": 181
},
"hsl": {
"h": 228.923,
"s": 56.034,
"l": 45.49
},
"oklch": {
"l": 0.4599,
"c": 0.16991,
"h": 269
},
"luminance": 0.09072
}Semantic roles & 50–950 ramp
primary
#334BB5
secondary
#C6B97D
accent
#C348DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82