#334BAC#334BAC
#334BAC is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.158 H 268.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).
Color values
| HEX | #334BAC |
|---|---|
| RGB | rgb(51, 75, 172) |
| HSL | hsl(228, 54%, 44%) |
| HSV | hsv(228, 70%, 67%) |
| CMYK | cmyk(70.3%, 56.4%, 0%, 32.5%) |
| CIE-LAB | lab(35.43, 24.37, -54.70) |
| CIE-LCH | lch(35.43, 59.89, 294.02°) |
| OKLab | oklab(45.25% -0.0034 -0.1575) |
| OKLCH | oklch(45.25% 0.158 268.8) |
| XYZ | xyz(11.3252, 8.7134, 40.1067) |
| Luminance | 0.0872 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.56
Sapphire
#0F52BA
ΔE00 4.31
Blue Blue
#2242C7
ΔE00 4.64
Cobalt (survey)
#1E488F
ΔE00 5.34
Sapphire (survey)
#2138AB
ΔE00 5.76
Blueberry
#464196
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BAC #AC9433
analogous
#3387AC #334BAC #5733AC
triadic
#334BAC #AC334B #4BAC33
tetradic
#334BAC #AC3387 #AC9433 #33AC57
square
#334BAC #AC3387 #AC9433 #33AC57
split-complementary
#334BAC #AC5733 #87AC33
monochromatic
#17224E #25367D #334BAC #5169CB #8092D9
Accessibility & contrast
On white
7.66
#334BAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#334BAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BAC
7.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BAC | 1.00 | 7.66 | 2.74 | 7.66 |
| #FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #334bac; /* rgb */ color: rgb(51, 75, 172); /* oklch */ color: oklch(45.3% 0.158 268.8);
Tailwind
colors: {
custom: {
50: '#7a7cc5',
500: '#334bac',
950: '#000000',
},
}SCSS
$custom: #334bac; $custom-light: #7a7cc5; $custom-dark: #000000;
JSON
{
"hex": "#334bac",
"rgb": {
"r": 51,
"g": 75,
"b": 172
},
"hsl": {
"h": 228.099,
"s": 54.26,
"l": 43.725
},
"oklch": {
"l": 0.45252,
"c": 0.15756,
"h": 268.8
},
"luminance": 0.08715
}Semantic roles & 50–950 ramp
primary
#334BAC
secondary
#C2B478
accent
#C04ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82