#334BAB#334BAB
#334BAB is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.156 H 268.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).
Color values
| HEX | #334BAB |
|---|---|
| RGB | rgb(51, 75, 171) |
| HSL | hsl(228, 54%, 44%) |
| HSV | hsv(228, 70%, 67%) |
| CMYK | cmyk(70.2%, 56.1%, 0%, 32.9%) |
| CIE-LAB | lab(35.35, 24.00, -54.23) |
| CIE-LCH | lch(35.35, 59.30, 293.88°) |
| OKLab | oklab(45.17% -0.0034 -0.1561) |
| OKLCH | oklch(45.17% 0.156 268.7) |
| XYZ | xyz(11.2295, 8.6751, 39.6028) |
| Luminance | 0.0868 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.53
Sapphire
#0F52BA
ΔE00 4.33
Blue Blue
#2242C7
ΔE00 4.76
Cobalt (survey)
#1E488F
ΔE00 5.21
Sapphire (survey)
#2138AB
ΔE00 5.78
Blueberry
#464196
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BAB #AB9333
analogous
#3387AB #334BAB #5733AB
triadic
#334BAB #AB334B #4BAB33
tetradic
#334BAB #AB3387 #AB9333 #33AB57
square
#334BAB #AB3387 #AB9333 #33AB57
split-complementary
#334BAB #AB5733 #87AB33
monochromatic
#17224D #25367C #334BAB #5069CB #7F91D9
Accessibility & contrast
On white
7.68
#334BAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#334BAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BAB
7.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BAB | 1.00 | 7.68 | 2.74 | 7.68 |
| #FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #334bab; /* rgb */ color: rgb(51, 75, 171); /* oklch */ color: oklch(45.2% 0.156 268.7);
Tailwind
colors: {
custom: {
50: '#7a7cc5',
500: '#334bab',
950: '#000000',
},
}SCSS
$custom: #334bab; $custom-light: #7a7cc5; $custom-dark: #000000;
JSON
{
"hex": "#334bab",
"rgb": {
"r": 51,
"g": 75,
"b": 171
},
"hsl": {
"h": 228,
"s": 54.054,
"l": 43.529
},
"oklch": {
"l": 0.45172,
"c": 0.15617,
"h": 268.7
},
"luminance": 0.08676
}Semantic roles & 50–950 ramp
primary
#334BAB
secondary
#C2B378
accent
#C04ADD
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82