#334AAB#334AAB
#334AAB is a dark, vivid blue. Relative luminance 0.085; OKLCH L 45.0% C 0.157 H 269.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #334AAB |
|---|---|
| RGB | rgb(51, 74, 171) |
| HSL | hsl(229, 54%, 44%) |
| HSV | hsv(229, 70%, 67%) |
| CMYK | cmyk(70.2%, 56.7%, 0%, 32.9%) |
| CIE-LAB | lab(35.08, 24.66, -54.66) |
| CIE-LCH | lch(35.08, 59.97, 294.29°) |
| OKLab | oklab(44.97% -0.0026 -0.1574) |
| OKLCH | oklch(44.97% 0.157 269.1) |
| XYZ | xyz(11.1622, 8.5405, 39.5804) |
| Luminance | 0.0854 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.56
Blue Blue
#2242C7
ΔE00 4.57
Sapphire
#0F52BA
ΔE00 4.59
Cobalt (survey)
#1E488F
ΔE00 5.30
Sapphire (survey)
#2138AB
ΔE00 5.46
Blueberry
#464196
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AAB #AB9433
analogous
#3386AB #334AAB #5833AB
triadic
#334AAB #AB334A #4AAB33
tetradic
#334AAB #AB3386 #AB9433 #33AB58
square
#334AAB #AB3386 #AB9433 #33AB58
split-complementary
#334AAB #AB5833 #86AB33
monochromatic
#17214D #25367C #334AAB #5068CB #7F91D9
Accessibility & contrast
On white
7.75
#334AAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#334AAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AAB
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AAB | 1.00 | 7.75 | 2.71 | 7.75 |
| #FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #334aab; /* rgb */ color: rgb(51, 74, 171); /* oklch */ color: oklch(45.0% 0.157 269.1);
Tailwind
colors: {
custom: {
50: '#7a7cc5',
500: '#334aab',
950: '#000000',
},
}SCSS
$custom: #334aab; $custom-light: #7a7cc5; $custom-dark: #000000;
JSON
{
"hex": "#334aab",
"rgb": {
"r": 51,
"g": 74,
"b": 171
},
"hsl": {
"h": 228.5,
"s": 54.054,
"l": 43.529
},
"oklch": {
"l": 0.44972,
"c": 0.15744,
"h": 269.1
},
"luminance": 0.08542
}Semantic roles & 50–950 ramp
primary
#334AAB
secondary
#C2B478
accent
#C14ADD
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82