#334EB2#334EB2
#334EB2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.162 H 268.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).
Color values
| HEX | #334EB2 |
|---|---|
| RGB | rgb(51, 78, 178) |
| HSL | hsl(227, 55%, 45%) |
| HSV | hsv(227, 71%, 70%) |
| CMYK | cmyk(71.3%, 56.2%, 0%, 30.2%) |
| CIE-LAB | lab(36.68, 24.62, -56.23) |
| CIE-LCH | lch(36.68, 61.38, 293.65°) |
| OKLab | oklab(46.34% -0.0056 -0.162) |
| OKLCH | oklch(46.34% 0.162 268) |
| XYZ | xyz(12.1227, 9.3657, 43.2797) |
| Luminance | 0.0937 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.50
Cobalt
#0047AB
ΔE00 3.92
Blue Blue
#2242C7
ΔE00 4.70
Cobalt (survey)
#1E488F
ΔE00 5.94
Blue (survey)
#0343DF
ΔE00 6.45
Denim Blue
#3B5B92
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334EB2 #B29733
analogous
#338EB2 #334EB2 #5733B2
triadic
#334EB2 #B2334E #4EB233
tetradic
#334EB2 #B2338E #B29733 #33B257
square
#334EB2 #B2338E #B29733 #33B257
split-complementary
#334EB2 #B25733 #8EB233
monochromatic
#182453 #253982 #334EB2 #546ECE #8496DC
Accessibility & contrast
On white
7.31
#334EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#334EB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334EB2
7.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334EB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334EB2 | 1.00 | 7.31 | 2.87 | 7.31 |
| #FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334eb2; /* rgb */ color: rgb(51, 78, 178); /* oklch */ color: oklch(46.3% 0.162 268.0);
Tailwind
colors: {
custom: {
50: '#7b7fca',
500: '#334eb2',
950: '#000000',
},
}SCSS
$custom: #334eb2; $custom-light: #7b7fca; $custom-dark: #000000;
JSON
{
"hex": "#334eb2",
"rgb": {
"r": 51,
"g": 78,
"b": 178
},
"hsl": {
"h": 227.244,
"s": 55.459,
"l": 44.902
},
"oklch": {
"l": 0.46335,
"c": 0.16206,
"h": 268
},
"luminance": 0.09367
}Semantic roles & 50–950 ramp
primary
#334EB2
secondary
#C5B67C
accent
#BF49DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82