#334CAC#334CAC
#334CAC is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.156 H 268.4°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).
Color values
| HEX | #334CAC |
|---|---|
| RGB | rgb(51, 76, 172) |
| HSL | hsl(228, 54%, 44%) |
| HSV | hsv(228, 70%, 67%) |
| CMYK | cmyk(70.3%, 55.8%, 0%, 32.5%) |
| CIE-LAB | lab(35.69, 23.71, -54.27) |
| CIE-LCH | lch(35.69, 59.22, 293.61°) |
| OKLab | oklab(45.45% -0.0042 -0.1562) |
| OKLCH | oklch(45.45% 0.156 268.4) |
| XYZ | xyz(11.3935, 8.8501, 40.1295) |
| Luminance | 0.0885 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.56
Sapphire
#0F52BA
ΔE00 4.06
Blue Blue
#2242C7
ΔE00 4.86
Cobalt (survey)
#1E488F
ΔE00 5.27
Sapphire (survey)
#2138AB
ΔE00 6.09
Blueberry
#464196
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CAC #AC9333
analogous
#3388AC #334CAC #5633AC
triadic
#334CAC #AC334C #4CAC33
tetradic
#334CAC #AC3388 #AC9333 #33AC56
square
#334CAC #AC3388 #AC9333 #33AC56
split-complementary
#334CAC #AC5633 #88AC33
monochromatic
#17224E #25377D #334CAC #516ACB #8092D9
Accessibility & contrast
On white
7.58
#334CAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#334CAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CAC
7.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CAC | 1.00 | 7.58 | 2.77 | 7.58 |
| #FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334cac; /* rgb */ color: rgb(51, 76, 172); /* oklch */ color: oklch(45.5% 0.156 268.4);
Tailwind
colors: {
custom: {
50: '#7a7dc5',
500: '#334cac',
950: '#000000',
},
}SCSS
$custom: #334cac; $custom-light: #7a7dc5; $custom-dark: #000000;
JSON
{
"hex": "#334cac",
"rgb": {
"r": 51,
"g": 76,
"b": 172
},
"hsl": {
"h": 227.603,
"s": 54.26,
"l": 43.725
},
"oklch": {
"l": 0.45453,
"c": 0.15629,
"h": 268.4
},
"luminance": 0.08851
}Semantic roles & 50–950 ramp
primary
#334CAC
secondary
#C2B378
accent
#BF4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82