#334DAF#334DAF
#334DAF is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.159 H 268.2°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).
Color values
| HEX | #334DAF |
|---|---|
| RGB | rgb(51, 77, 175) |
| HSL | hsl(227, 55%, 44%) |
| HSV | hsv(227, 71%, 69%) |
| CMYK | cmyk(70.9%, 56%, 0%, 31.4%) |
| CIE-LAB | lab(36.19, 24.17, -55.25) |
| CIE-LCH | lch(36.19, 60.30, 293.63°) |
| OKLab | oklab(45.89% -0.0049 -0.1591) |
| OKLCH | oklch(45.89% 0.159 268.2) |
| XYZ | xyz(11.7543, 9.1055, 41.6872) |
| Luminance | 0.0911 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.71
Sapphire
#0F52BA
ΔE00 3.75
Blue Blue
#2242C7
ΔE00 4.75
Cobalt (survey)
#1E488F
ΔE00 5.59
Sapphire (survey)
#2138AB
ΔE00 6.37
Ocean Blue
#4F42B5
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334DAF #AF9533
analogous
#338BAF #334DAF #5733AF
triadic
#334DAF #AF334D #4DAF33
tetradic
#334DAF #AF338B #AF9533 #33AF57
square
#334DAF #AF338B #AF9533 #33AF57
split-complementary
#334DAF #AF5733 #8BAF33
monochromatic
#172350 #253880 #334DAF #526CCD #8294DB
Accessibility & contrast
On white
7.44
#334DAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#334DAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334DAF
7.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334DAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334DAF | 1.00 | 7.44 | 2.82 | 7.44 |
| #FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334daf; /* rgb */ color: rgb(51, 77, 175); /* oklch */ color: oklch(45.9% 0.159 268.2);
Tailwind
colors: {
custom: {
50: '#7b7ec8',
500: '#334daf',
950: '#000000',
},
}SCSS
$custom: #334daf; $custom-light: #7b7ec8; $custom-dark: #000000;
JSON
{
"hex": "#334daf",
"rgb": {
"r": 51,
"g": 77,
"b": 175
},
"hsl": {
"h": 227.419,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.45894,
"c": 0.15918,
"h": 268.2
},
"luminance": 0.09107
}Semantic roles & 50–950 ramp
primary
#334DAF
secondary
#C4B47A
accent
#BF4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82