#334FAF#334FAF
#334FAF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.157 H 267.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #334FAF |
|---|---|
| RGB | rgb(51, 79, 175) |
| HSL | hsl(226, 55%, 44%) |
| HSV | hsv(226, 71%, 69%) |
| CMYK | cmyk(70.9%, 54.9%, 0%, 31.4%) |
| CIE-LAB | lab(36.72, 22.85, -54.38) |
| CIE-LCH | lch(36.72, 58.98, 292.79°) |
| OKLab | oklab(46.3% -0.0066 -0.1565) |
| OKLCH | oklch(46.3% 0.157 267.6) |
| XYZ | xyz(11.8964, 9.3897, 41.7346) |
| Luminance | 0.0939 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.30
Cobalt
#0047AB
ΔE00 3.85
Blue Blue
#2242C7
ΔE00 5.27
Cobalt (survey)
#1E488F
ΔE00 5.57
Denim Blue
#3B5B92
ΔE00 5.93
Dusk Blue
#26538D
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FAF #AF9333
analogous
#338DAF #334FAF #5533AF
triadic
#334FAF #AF334F #4FAF33
tetradic
#334FAF #AF338D #AF9333 #33AF55
square
#334FAF #AF338D #AF9333 #33AF55
split-complementary
#334FAF #AF5533 #8DAF33
monochromatic
#172450 #253A80 #334FAF #526ECD #8296DB
Accessibility & contrast
On white
7.30
#334FAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#334FAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FAF
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FAF | 1.00 | 7.30 | 2.88 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334faf; /* rgb */ color: rgb(51, 79, 175); /* oklch */ color: oklch(46.3% 0.157 267.6);
Tailwind
colors: {
custom: {
50: '#7b7fc8',
500: '#334faf',
950: '#000000',
},
}SCSS
$custom: #334faf; $custom-light: #7b7fc8; $custom-dark: #000000;
JSON
{
"hex": "#334faf",
"rgb": {
"r": 51,
"g": 79,
"b": 175
},
"hsl": {
"h": 226.452,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.46299,
"c": 0.15665,
"h": 267.6
},
"luminance": 0.09391
}Semantic roles & 50–950 ramp
primary
#334FAF
secondary
#C4B37A
accent
#BD4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82