#334CB5#334CB5
#334CB5 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.169 H 268.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB5 |
|---|---|
| RGB | rgb(51, 76, 181) |
| HSL | hsl(228, 56%, 45%) |
| HSV | hsv(228, 72%, 71%) |
| CMYK | cmyk(71.8%, 58%, 0%, 29%) |
| CIE-LAB | lab(36.38, 27.04, -58.48) |
| CIE-LCH | lch(36.38, 64.43, 294.81°) |
| OKLab | oklab(46.18% -0.0039 -0.1686) |
| OKLCH | oklch(46.18% 0.169 268.7) |
| XYZ | xyz(12.2873, 9.2076, 44.8368) |
| Luminance | 0.0921 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.89
Sapphire
#0F52BA
ΔE00 4.02
Cobalt
#0047AB
ΔE00 4.07
Blue (survey)
#0343DF
ΔE00 5.77
Ocean Blue
#4F42B5
ΔE00 5.82
Sapphire (survey)
#2138AB
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB5 #B59C33
analogous
#338DB5 #334CB5 #5B33B5
triadic
#334CB5 #B5334C #4CB533
tetradic
#334CB5 #B5338D #B59C33 #33B55B
square
#334CB5 #B5338D #B59C33 #33B55B
split-complementary
#334CB5 #B55B33 #8DB533
monochromatic
#182456 #263885 #334CB5 #566DCF #8696DD
Accessibility & contrast
On white
7.39
#334CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#334CB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB5
7.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB5 | 1.00 | 7.39 | 2.84 | 7.39 |
| #FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334cb5; /* rgb */ color: rgb(51, 76, 181); /* oklch */ color: oklch(46.2% 0.169 268.7);
Tailwind
colors: {
custom: {
50: '#7c7dcc',
500: '#334cb5',
950: '#000000',
},
}SCSS
$custom: #334cb5; $custom-light: #7c7dcc; $custom-dark: #000000;
JSON
{
"hex": "#334cb5",
"rgb": {
"r": 51,
"g": 76,
"b": 181
},
"hsl": {
"h": 228.462,
"s": 56.034,
"l": 45.49
},
"oklch": {
"l": 0.46184,
"c": 0.16866,
"h": 268.7
},
"luminance": 0.09209
}Semantic roles & 50–950 ramp
primary
#334CB5
secondary
#C6B87D
accent
#C248DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82