#334CB4#334CB4
#334CB4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.167 H 268.7°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB4 |
|---|---|
| RGB | rgb(51, 76, 180) |
| HSL | hsl(228, 56%, 45%) |
| HSV | hsv(228, 72%, 71%) |
| CMYK | cmyk(71.7%, 57.8%, 0%, 29.4%) |
| CIE-LAB | lab(36.30, 26.67, -58.02) |
| CIE-LCH | lch(36.30, 63.86, 294.69°) |
| OKLab | oklab(46.1% -0.0039 -0.1673) |
| OKLCH | oklch(46.1% 0.167 268.7) |
| XYZ | xyz(12.1851, 9.1667, 44.2984) |
| Luminance | 0.0917 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.98
Cobalt
#0047AB
ΔE00 3.99
Sapphire
#0F52BA
ΔE00 4.01
Ocean Blue
#4F42B5
ΔE00 5.87
Blue (survey)
#0343DF
ΔE00 5.90
Sapphire (survey)
#2138AB
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB4 #B49B33
analogous
#338CB4 #334CB4 #5A33B4
triadic
#334CB4 #B4334C #4CB433
tetradic
#334CB4 #B4338C #B49B33 #33B45A
square
#334CB4 #B4338C #B49B33 #33B45A
split-complementary
#334CB4 #B45A33 #8CB433
monochromatic
#182455 #253884 #334CB4 #556DCF #8596DC
Accessibility & contrast
On white
7.41
#334CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#334CB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB4
7.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB4 | 1.00 | 7.41 | 2.83 | 7.41 |
| #FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334cb4; /* rgb */ color: rgb(51, 76, 180); /* oklch */ color: oklch(46.1% 0.167 268.7);
Tailwind
colors: {
custom: {
50: '#7c7dcb',
500: '#334cb4',
950: '#000000',
},
}SCSS
$custom: #334cb4; $custom-light: #7c7dcb; $custom-dark: #000000;
JSON
{
"hex": "#334cb4",
"rgb": {
"r": 51,
"g": 76,
"b": 180
},
"hsl": {
"h": 228.372,
"s": 55.844,
"l": 45.294
},
"oklch": {
"l": 0.46102,
"c": 0.16731,
"h": 268.7
},
"luminance": 0.09168
}Semantic roles & 50–950 ramp
primary
#334CB4
secondary
#C6B87D
accent
#C249DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82