#334DB6#334DB6
#334DB6 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.169 H 268.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #334DB6 |
|---|---|
| RGB | rgb(51, 77, 182) |
| HSL | hsl(228, 56%, 46%) |
| HSV | hsv(228, 72%, 71%) |
| CMYK | cmyk(72%, 57.7%, 0%, 28.6%) |
| CIE-LAB | lab(36.72, 26.75, -58.52) |
| CIE-LCH | lch(36.72, 64.35, 294.57°) |
| OKLab | oklab(46.46% -0.0046 -0.1687) |
| OKLCH | oklch(46.46% 0.169 268.4) |
| XYZ | xyz(12.4597, 9.3877, 45.4023) |
| Luminance | 0.0939 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.79
Blue Blue
#2242C7
ΔE00 4.06
Cobalt
#0047AB
ΔE00 4.15
Blue (survey)
#0343DF
ΔE00 5.80
Ocean Blue
#4F42B5
ΔE00 6.04
Sapphire (survey)
#2138AB
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334DB6 #B69C33
analogous
#338EB6 #334DB6 #5B33B6
triadic
#334DB6 #B6334D #4DB633
tetradic
#334DB6 #B6338E #B69C33 #33B65B
square
#334DB6 #B6338E #B69C33 #33B65B
split-complementary
#334DB6 #B65B33 #8EB633
monochromatic
#182556 #263986 #334DB6 #566FD0 #8697DD
Accessibility & contrast
On white
7.30
#334DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#334DB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334DB6
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334DB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334DB6 | 1.00 | 7.30 | 2.88 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334db6; /* rgb */ color: rgb(51, 77, 182); /* oklch */ color: oklch(46.5% 0.169 268.4);
Tailwind
colors: {
custom: {
50: '#7c7ecd',
500: '#334db6',
950: '#000000',
},
}SCSS
$custom: #334db6; $custom-light: #7c7ecd; $custom-dark: #000000;
JSON
{
"hex": "#334db6",
"rgb": {
"r": 51,
"g": 77,
"b": 182
},
"hsl": {
"h": 228.092,
"s": 56.223,
"l": 45.686
},
"oklch": {
"l": 0.46462,
"c": 0.16878,
"h": 268.4
},
"luminance": 0.09389
}Semantic roles & 50–950 ramp
primary
#334DB6
secondary
#C7B87E
accent
#C148E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82