#334EBB#334EBB
#334EBB is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.1% C 0.174 H 268.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #334EBB |
|---|---|
| RGB | rgb(51, 78, 187) |
| HSL | hsl(228, 57%, 47%) |
| HSV | hsv(228, 73%, 73%) |
| CMYK | cmyk(72.7%, 58.3%, 0%, 26.7%) |
| CIE-LAB | lab(37.37, 27.94, -60.40) |
| CIE-LCH | lch(37.37, 66.55, 294.82°) |
| OKLab | oklab(47.07% -0.0052 -0.1742) |
| OKLCH | oklch(47.07% 0.174 268.3) |
| XYZ | xyz(13.0562, 9.7391, 48.1958) |
| Luminance | 0.0974 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.73
Blue Blue
#2242C7
ΔE00 3.96
Cobalt
#0047AB
ΔE00 4.61
Blue (survey)
#0343DF
ΔE00 5.38
Warm Blue
#4B57DB
ΔE00 6.04
Ocean Blue
#4F42B5
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334EBB #BBA033
analogous
#3392BB #334EBB #5C33BB
triadic
#334EBB #BB334E #4EBB33
tetradic
#334EBB #BB3392 #BBA033 #33BB5C
square
#334EBB #BB3392 #BBA033 #33BB5C
split-complementary
#334EBB #BB5C33 #92BB33
monochromatic
#19265B #263A8B #334EBB #5971D2 #899ADF
Accessibility & contrast
On white
7.12
#334EBB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#334EBB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334EBB
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334EBB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334EBB | 1.00 | 7.12 | 2.95 | 7.12 |
| #FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #334ebb; /* rgb */ color: rgb(51, 78, 187); /* oklch */ color: oklch(47.1% 0.174 268.3);
Tailwind
colors: {
custom: {
50: '#7d7fd0',
500: '#334ebb',
950: '#000000',
},
}SCSS
$custom: #334ebb; $custom-light: #7d7fd0; $custom-dark: #000000;
JSON
{
"hex": "#334ebb",
"rgb": {
"r": 51,
"g": 78,
"b": 187
},
"hsl": {
"h": 228.088,
"s": 57.143,
"l": 46.667
},
"oklch": {
"l": 0.4707,
"c": 0.17432,
"h": 268.3
},
"luminance": 0.0974
}Semantic roles & 50–950 ramp
primary
#334EBB
secondary
#C9BB81
accent
#C247E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82