#334EB3#334EB3
#334EB3 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.163 H 268.1°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #334EB3 |
|---|---|
| RGB | rgb(51, 78, 179) |
| HSL | hsl(227, 56%, 45%) |
| HSV | hsv(227, 72%, 70%) |
| CMYK | cmyk(71.5%, 56.4%, 0%, 29.8%) |
| CIE-LAB | lab(36.75, 24.99, -56.69) |
| CIE-LCH | lch(36.75, 61.96, 293.79°) |
| OKLab | oklab(46.42% -0.0055 -0.1633) |
| OKLCH | oklch(46.42% 0.163 268.1) |
| XYZ | xyz(12.2235, 9.4060, 43.8104) |
| Luminance | 0.0941 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.50
Cobalt
#0047AB
ΔE00 3.98
Blue Blue
#2242C7
ΔE00 4.60
Cobalt (survey)
#1E488F
ΔE00 6.07
Blue (survey)
#0343DF
ΔE00 6.32
Ocean Blue
#4F42B5
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334EB3 #B39833
analogous
#338EB3 #334EB3 #5833B3
triadic
#334EB3 #B3334E #4EB333
tetradic
#334EB3 #B3338E #B39833 #33B358
square
#334EB3 #B3338E #B39833 #33B358
split-complementary
#334EB3 #B35833 #8EB333
monochromatic
#182454 #253983 #334EB3 #556ECE #8497DC
Accessibility & contrast
On white
7.29
#334EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#334EB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334EB3
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334EB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334EB3 | 1.00 | 7.29 | 2.88 | 7.29 |
| #FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334eb3; /* rgb */ color: rgb(51, 78, 179); /* oklch */ color: oklch(46.4% 0.163 268.1);
Tailwind
colors: {
custom: {
50: '#7b7fca',
500: '#334eb3',
950: '#000000',
},
}SCSS
$custom: #334eb3; $custom-light: #7b7fca; $custom-dark: #000000;
JSON
{
"hex": "#334eb3",
"rgb": {
"r": 51,
"g": 78,
"b": 179
},
"hsl": {
"h": 227.344,
"s": 55.652,
"l": 45.098
},
"oklch": {
"l": 0.46416,
"c": 0.16343,
"h": 268.1
},
"luminance": 0.09407
}Semantic roles & 50–950 ramp
primary
#334EB3
secondary
#C6B67C
accent
#BF49DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82