#334EBA#334EBA
#334EBA is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.173 H 268.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #334EBA |
|---|---|
| RGB | rgb(51, 78, 186) |
| HSL | hsl(228, 57%, 46%) |
| HSV | hsv(228, 73%, 73%) |
| CMYK | cmyk(72.6%, 58.1%, 0%, 27.1%) |
| CIE-LAB | lab(37.29, 27.57, -59.94) |
| CIE-LCH | lch(37.29, 65.98, 294.70°) |
| OKLab | oklab(46.99% -0.0053 -0.1729) |
| OKLCH | oklch(46.99% 0.173 268.3) |
| XYZ | xyz(12.9495, 9.6964, 47.6340) |
| Luminance | 0.0970 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.68
Blue Blue
#2242C7
ΔE00 4.03
Cobalt
#0047AB
ΔE00 4.52
Blue (survey)
#0343DF
ΔE00 5.49
Warm Blue
#4B57DB
ΔE00 6.16
Ocean Blue
#4F42B5
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334EBA #BA9F33
analogous
#3392BA #334EBA #5C33BA
triadic
#334EBA #BA334E #4EBA33
tetradic
#334EBA #BA3392 #BA9F33 #33BA5C
square
#334EBA #BA3392 #BA9F33 #33BA5C
split-complementary
#334EBA #BA5C33 #92BA33
monochromatic
#19265A #263A8A #334EBA #5971D1 #899ADF
Accessibility & contrast
On white
7.14
#334EBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#334EBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334EBA
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334EBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334EBA | 1.00 | 7.14 | 2.94 | 7.14 |
| #FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #334eba; /* rgb */ color: rgb(51, 78, 186); /* oklch */ color: oklch(47.0% 0.173 268.3);
Tailwind
colors: {
custom: {
50: '#7d7fd0',
500: '#334eba',
950: '#000000',
},
}SCSS
$custom: #334eba; $custom-light: #7d7fd0; $custom-dark: #000000;
JSON
{
"hex": "#334eba",
"rgb": {
"r": 51,
"g": 78,
"b": 186
},
"hsl": {
"h": 228,
"s": 56.962,
"l": 46.471
},
"oklch": {
"l": 0.46987,
"c": 0.17297,
"h": 268.3
},
"luminance": 0.09698
}Semantic roles & 50–950 ramp
primary
#334EBA
secondary
#C9BA80
accent
#C248E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82