#334CB6#334CB6
#334CB6 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.3% C 0.170 H 268.7°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB6 |
|---|---|
| RGB | rgb(51, 76, 182) |
| HSL | hsl(229, 56%, 46%) |
| HSV | hsv(229, 72%, 71%) |
| CMYK | cmyk(72%, 58.2%, 0%, 28.6%) |
| CIE-LAB | lab(36.46, 27.41, -58.95) |
| CIE-LCH | lch(36.46, 65.01, 294.94°) |
| OKLab | oklab(46.27% -0.0038 -0.17) |
| OKLCH | oklch(46.27% 0.17 268.7) |
| XYZ | xyz(12.3903, 9.2488, 45.3791) |
| Luminance | 0.0925 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.79
Sapphire
#0F52BA
ΔE00 4.04
Cobalt
#0047AB
ΔE00 4.15
Blue (survey)
#0343DF
ΔE00 5.65
Ocean Blue
#4F42B5
ΔE00 5.77
Sapphire (survey)
#2138AB
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB6 #B69D33
analogous
#338DB6 #334CB6 #5C33B6
triadic
#334CB6 #B6334C #4CB633
tetradic
#334CB6 #B6338D #B69D33 #33B65C
square
#334CB6 #B6338D #B69D33 #33B65C
split-complementary
#334CB6 #B65C33 #8DB633
monochromatic
#182456 #263886 #334CB6 #566ED0 #8697DD
Accessibility & contrast
On white
7.37
#334CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#334CB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB6
7.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB6 | 1.00 | 7.37 | 2.85 | 7.37 |
| #FFFFFF | 7.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334cb6; /* rgb */ color: rgb(51, 76, 182); /* oklch */ color: oklch(46.3% 0.170 268.7);
Tailwind
colors: {
custom: {
50: '#7c7dcd',
500: '#334cb6',
950: '#000000',
},
}SCSS
$custom: #334cb6; $custom-light: #7c7dcd; $custom-dark: #000000;
JSON
{
"hex": "#334cb6",
"rgb": {
"r": 51,
"g": 76,
"b": 182
},
"hsl": {
"h": 228.55,
"s": 56.223,
"l": 45.686
},
"oklch": {
"l": 0.46267,
"c": 0.17002,
"h": 268.7
},
"luminance": 0.0925
}Semantic roles & 50–950 ramp
primary
#334CB6
secondary
#C7B97E
accent
#C348E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82