#334EB5#334EB5
#334EB5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.166 H 268.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #334EB5 |
|---|---|
| RGB | rgb(51, 78, 181) |
| HSL | hsl(228, 56%, 45%) |
| HSV | hsv(228, 72%, 71%) |
| CMYK | cmyk(71.8%, 56.9%, 0%, 29%) |
| CIE-LAB | lab(36.91, 25.73, -57.63) |
| CIE-LCH | lch(36.91, 63.11, 294.06°) |
| OKLab | oklab(46.58% -0.0054 -0.1661) |
| OKLCH | oklch(46.58% 0.166 268.1) |
| XYZ | xyz(12.4272, 9.4875, 44.8834) |
| Luminance | 0.0949 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.53
Cobalt
#0047AB
ΔE00 4.12
Blue Blue
#2242C7
ΔE00 4.42
Blue (survey)
#0343DF
ΔE00 6.08
Cobalt (survey)
#1E488F
ΔE00 6.32
Ocean Blue
#4F42B5
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334EB5 #B59A33
analogous
#338FB5 #334EB5 #5933B5
triadic
#334EB5 #B5334E #4EB533
tetradic
#334EB5 #B5338F #B59A33 #33B559
square
#334EB5 #B5338F #B59A33 #33B559
split-complementary
#334EB5 #B55933 #8FB533
monochromatic
#182556 #263985 #334EB5 #566FCF #8698DD
Accessibility & contrast
On white
7.25
#334EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#334EB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334EB5
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334EB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334EB5 | 1.00 | 7.25 | 2.90 | 7.25 |
| #FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #334eb5; /* rgb */ color: rgb(51, 78, 181); /* oklch */ color: oklch(46.6% 0.166 268.1);
Tailwind
colors: {
custom: {
50: '#7c7fcc',
500: '#334eb5',
950: '#000000',
},
}SCSS
$custom: #334eb5; $custom-light: #7c7fcc; $custom-dark: #000000;
JSON
{
"hex": "#334eb5",
"rgb": {
"r": 51,
"g": 78,
"b": 181
},
"hsl": {
"h": 227.538,
"s": 56.034,
"l": 45.49
},
"oklch": {
"l": 0.46577,
"c": 0.16618,
"h": 268.1
},
"luminance": 0.09489
}Semantic roles & 50–950 ramp
primary
#334EB5
secondary
#C6B77D
accent
#C048DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82