#334CAE#334CAE
#334CAE is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.159 H 268.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).
Color values
| HEX | #334CAE |
|---|---|
| RGB | rgb(51, 76, 174) |
| HSL | hsl(228, 55%, 44%) |
| HSV | hsv(228, 71%, 68%) |
| CMYK | cmyk(70.7%, 56.3%, 0%, 31.8%) |
| CIE-LAB | lab(35.84, 24.45, -55.21) |
| CIE-LCH | lch(35.84, 60.38, 293.89°) |
| OKLab | oklab(45.61% -0.0041 -0.159) |
| OKLCH | oklch(45.61% 0.159 268.5) |
| XYZ | xyz(11.5870, 8.9275, 41.1487) |
| Luminance | 0.0893 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.64
Sapphire
#0F52BA
ΔE00 4.01
Blue Blue
#2242C7
ΔE00 4.62
Cobalt (survey)
#1E488F
ΔE00 5.52
Sapphire (survey)
#2138AB
ΔE00 6.05
Ocean Blue
#4F42B5
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CAE #AE9533
analogous
#338AAE #334CAE #5833AE
triadic
#334CAE #AE334C #4CAE33
tetradic
#334CAE #AE338A #AE9533 #33AE58
square
#334CAE #AE338A #AE9533 #33AE58
split-complementary
#334CAE #AE5833 #8AAE33
monochromatic
#17234F #25377F #334CAE #526BCC #8193DA
Accessibility & contrast
On white
7.54
#334CAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#334CAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CAE
7.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CAE | 1.00 | 7.54 | 2.79 | 7.54 |
| #FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334cae; /* rgb */ color: rgb(51, 76, 174); /* oklch */ color: oklch(45.6% 0.159 268.5);
Tailwind
colors: {
custom: {
50: '#7b7dc7',
500: '#334cae',
950: '#000000',
},
}SCSS
$custom: #334cae; $custom-light: #7b7dc7; $custom-dark: #000000;
JSON
{
"hex": "#334cae",
"rgb": {
"r": 51,
"g": 76,
"b": 174
},
"hsl": {
"h": 227.805,
"s": 54.667,
"l": 44.118
},
"oklch": {
"l": 0.45614,
"c": 0.15906,
"h": 268.5
},
"luminance": 0.08929
}Semantic roles & 50–950 ramp
primary
#334CAE
secondary
#C3B479
accent
#C04ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82