#334BAE#334BAE
#334BAE is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.160 H 268.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).
Color values
| HEX | #334BAE |
|---|---|
| RGB | rgb(51, 75, 174) |
| HSL | hsl(228, 55%, 44%) |
| HSV | hsv(228, 71%, 68%) |
| CMYK | cmyk(70.7%, 56.9%, 0%, 31.8%) |
| CIE-LAB | lab(35.58, 25.11, -55.64) |
| CIE-LCH | lch(35.58, 61.05, 294.29°) |
| OKLab | oklab(45.41% -0.0033 -0.1603) |
| OKLCH | oklch(45.41% 0.16 268.8) |
| XYZ | xyz(11.5187, 8.7908, 41.1259) |
| Luminance | 0.0879 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.65
Sapphire
#0F52BA
ΔE00 4.27
Blue Blue
#2242C7
ΔE00 4.40
Cobalt (survey)
#1E488F
ΔE00 5.58
Sapphire (survey)
#2138AB
ΔE00 5.73
Ocean Blue
#4F42B5
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BAE #AE9633
analogous
#3389AE #334BAE #5933AE
triadic
#334BAE #AE334B #4BAE33
tetradic
#334BAE #AE3389 #AE9633 #33AE59
square
#334BAE #AE3389 #AE9633 #33AE59
split-complementary
#334BAE #AE5933 #89AE33
monochromatic
#17224F #25377F #334BAE #526ACC #8193DA
Accessibility & contrast
On white
7.61
#334BAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#334BAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BAE
7.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BAE | 1.00 | 7.61 | 2.76 | 7.61 |
| #FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334bae; /* rgb */ color: rgb(51, 75, 174); /* oklch */ color: oklch(45.4% 0.160 268.8);
Tailwind
colors: {
custom: {
50: '#7b7cc7',
500: '#334bae',
950: '#000000',
},
}SCSS
$custom: #334bae; $custom-light: #7b7cc7; $custom-dark: #000000;
JSON
{
"hex": "#334bae",
"rgb": {
"r": 51,
"g": 75,
"b": 174
},
"hsl": {
"h": 228.293,
"s": 54.667,
"l": 44.118
},
"oklch": {
"l": 0.45414,
"c": 0.16032,
"h": 268.8
},
"luminance": 0.08792
}Semantic roles & 50–950 ramp
primary
#334BAE
secondary
#C3B579
accent
#C14ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82