#334EAB#334EAB
#334EAB is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.8% C 0.152 H 267.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).
Color values
| HEX | #334EAB |
|---|---|
| RGB | rgb(51, 78, 171) |
| HSL | hsl(227, 54%, 44%) |
| HSV | hsv(227, 70%, 67%) |
| CMYK | cmyk(70.2%, 54.4%, 0%, 32.9%) |
| CIE-LAB | lab(36.16, 22.02, -52.92) |
| CIE-LCH | lch(36.16, 57.32, 292.60°) |
| OKLab | oklab(45.78% -0.006 -0.1522) |
| OKLCH | oklch(45.78% 0.152 267.7) |
| XYZ | xyz(11.4378, 9.0917, 39.6723) |
| Luminance | 0.0909 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.62
Cobalt
#0047AB
ΔE00 3.63
Cobalt (survey)
#1E488F
ΔE00 5.08
Blue Blue
#2242C7
ΔE00 5.44
Denim Blue
#3B5B92
ΔE00 5.86
Dusk Blue
#26538D
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334EAB #AB9033
analogous
#338AAB #334EAB #5433AB
triadic
#334EAB #AB334E #4EAB33
tetradic
#334EAB #AB338A #AB9033 #33AB54
square
#334EAB #AB338A #AB9033 #33AB54
split-complementary
#334EAB #AB5433 #8AAB33
monochromatic
#17234D #25387C #334EAB #506CCB #7F94D9
Accessibility & contrast
On white
7.45
#334EAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#334EAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334EAB
7.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334EAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334EAB | 1.00 | 7.45 | 2.82 | 7.45 |
| #FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#065BAE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334eab; /* rgb */ color: rgb(51, 78, 171); /* oklch */ color: oklch(45.8% 0.152 267.7);
Tailwind
colors: {
custom: {
50: '#7a7fc5',
500: '#334eab',
950: '#000000',
},
}SCSS
$custom: #334eab; $custom-light: #7a7fc5; $custom-dark: #000000;
JSON
{
"hex": "#334eab",
"rgb": {
"r": 51,
"g": 78,
"b": 171
},
"hsl": {
"h": 226.5,
"s": 54.054,
"l": 43.529
},
"oklch": {
"l": 0.45781,
"c": 0.15235,
"h": 267.7
},
"luminance": 0.09093
}Semantic roles & 50–950 ramp
primary
#334EAB
secondary
#C2B178
accent
#BC4ADD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82