#334CAF#334CAF
#334CAF is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.160 H 268.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #334CAF |
|---|---|
| RGB | rgb(51, 76, 175) |
| HSL | hsl(228, 55%, 44%) |
| HSV | hsv(228, 71%, 69%) |
| CMYK | cmyk(70.9%, 56.6%, 0%, 31.4%) |
| CIE-LAB | lab(35.92, 24.82, -55.68) |
| CIE-LCH | lch(35.92, 60.96, 294.03°) |
| OKLab | oklab(45.69% -0.0041 -0.1604) |
| OKLCH | oklch(45.69% 0.16 268.5) |
| XYZ | xyz(11.6849, 8.9667, 41.6641) |
| Luminance | 0.0897 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.69
Sapphire
#0F52BA
ΔE00 4.00
Blue Blue
#2242C7
ΔE00 4.51
Cobalt (survey)
#1E488F
ΔE00 5.64
Sapphire (survey)
#2138AB
ΔE00 6.04
Ocean Blue
#4F42B5
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CAF #AF9633
analogous
#338AAF #334CAF #5833AF
triadic
#334CAF #AF334C #4CAF33
tetradic
#334CAF #AF338A #AF9633 #33AF58
square
#334CAF #AF338A #AF9633 #33AF58
split-complementary
#334CAF #AF5833 #8AAF33
monochromatic
#172350 #253780 #334CAF #526BCD #8294DB
Accessibility & contrast
On white
7.52
#334CAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#334CAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CAF
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CAF | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334caf; /* rgb */ color: rgb(51, 76, 175); /* oklch */ color: oklch(45.7% 0.160 268.5);
Tailwind
colors: {
custom: {
50: '#7b7dc8',
500: '#334caf',
950: '#000000',
},
}SCSS
$custom: #334caf; $custom-light: #7b7dc8; $custom-dark: #000000;
JSON
{
"hex": "#334caf",
"rgb": {
"r": 51,
"g": 76,
"b": 175
},
"hsl": {
"h": 227.903,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.45694,
"c": 0.16044,
"h": 268.5
},
"luminance": 0.08968
}Semantic roles & 50–950 ramp
primary
#334CAF
secondary
#C4B57A
accent
#C04ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82