#334FAE#334FAE
#334FAE is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.155 H 267.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #334FAE |
|---|---|
| RGB | rgb(51, 79, 174) |
| HSL | hsl(226, 55%, 44%) |
| HSV | hsv(226, 71%, 68%) |
| CMYK | cmyk(70.7%, 54.6%, 0%, 31.8%) |
| CIE-LAB | lab(36.65, 22.48, -53.90) |
| CIE-LCH | lch(36.65, 58.40, 292.64°) |
| OKLab | oklab(46.22% -0.0067 -0.1551) |
| OKLCH | oklch(46.22% 0.155 267.5) |
| XYZ | xyz(11.7986, 9.3506, 41.2192) |
| Luminance | 0.0935 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.32
Cobalt
#0047AB
ΔE00 3.81
Blue Blue
#2242C7
ΔE00 5.37
Cobalt (survey)
#1E488F
ΔE00 5.44
Denim Blue
#3B5B92
ΔE00 5.84
Dusk Blue
#26538D
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FAE #AE9233
analogous
#338DAE #334FAE #5433AE
triadic
#334FAE #AE334F #4FAE33
tetradic
#334FAE #AE338D #AE9233 #33AE54
square
#334FAE #AE338D #AE9233 #33AE54
split-complementary
#334FAE #AE5433 #8DAE33
monochromatic
#17244F #253A7F #334FAE #526ECC #8195DA
Accessibility & contrast
On white
7.32
#334FAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#334FAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FAE
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FAE | 1.00 | 7.32 | 2.87 | 7.32 |
| #FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#025CB1
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334fae; /* rgb */ color: rgb(51, 79, 174); /* oklch */ color: oklch(46.2% 0.155 267.5);
Tailwind
colors: {
custom: {
50: '#7a7fc7',
500: '#334fae',
950: '#000000',
},
}SCSS
$custom: #334fae; $custom-light: #7a7fc7; $custom-dark: #000000;
JSON
{
"hex": "#334fae",
"rgb": {
"r": 51,
"g": 79,
"b": 174
},
"hsl": {
"h": 226.341,
"s": 54.667,
"l": 44.118
},
"oklch": {
"l": 0.4622,
"c": 0.15526,
"h": 267.5
},
"luminance": 0.09352
}Semantic roles & 50–950 ramp
primary
#334FAE
secondary
#C3B379
accent
#BC4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82