#334EB6#334EB6
#334EB6 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.168 H 268.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #334EB6 |
|---|---|
| RGB | rgb(51, 78, 182) |
| HSL | hsl(228, 56%, 46%) |
| HSV | hsv(228, 72%, 71%) |
| CMYK | cmyk(72%, 57.1%, 0%, 28.6%) |
| CIE-LAB | lab(36.98, 26.10, -58.09) |
| CIE-LCH | lch(36.98, 63.69, 294.19°) |
| OKLab | oklab(46.66% -0.0054 -0.1674) |
| OKLCH | oklch(46.66% 0.168 268.2) |
| XYZ | xyz(12.5302, 9.5287, 45.4258) |
| Luminance | 0.0953 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.55
Cobalt
#0047AB
ΔE00 4.19
Blue Blue
#2242C7
ΔE00 4.34
Blue (survey)
#0343DF
ΔE00 5.96
Ocean Blue
#4F42B5
ΔE00 6.31
Cobalt (survey)
#1E488F
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334EB6 #B69B33
analogous
#338FB6 #334EB6 #5A33B6
triadic
#334EB6 #B6334E #4EB633
tetradic
#334EB6 #B6338F #B69B33 #33B65A
square
#334EB6 #B6338F #B69B33 #33B65A
split-complementary
#334EB6 #B65A33 #8FB633
monochromatic
#182556 #263A86 #334EB6 #566FD0 #8698DD
Accessibility & contrast
On white
7.23
#334EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#334EB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334EB6
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334EB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334EB6 | 1.00 | 7.23 | 2.91 | 7.23 |
| #FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #334eb6; /* rgb */ color: rgb(51, 78, 182); /* oklch */ color: oklch(46.7% 0.168 268.2);
Tailwind
colors: {
custom: {
50: '#7c7fcd',
500: '#334eb6',
950: '#000000',
},
}SCSS
$custom: #334eb6; $custom-light: #7c7fcd; $custom-dark: #000000;
JSON
{
"hex": "#334eb6",
"rgb": {
"r": 51,
"g": 78,
"b": 182
},
"hsl": {
"h": 227.634,
"s": 56.223,
"l": 45.686
},
"oklch": {
"l": 0.46659,
"c": 0.16754,
"h": 268.2
},
"luminance": 0.0953
}Semantic roles & 50–950 ramp
primary
#334EB6
secondary
#C7B87E
accent
#C048E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82