#334FB9#334FB9
#334FB9 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.170 H 268.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #334FB9 |
|---|---|
| RGB | rgb(51, 79, 185) |
| HSL | hsl(227, 57%, 46%) |
| HSV | hsv(227, 72%, 73%) |
| CMYK | cmyk(72.4%, 57.3%, 0%, 27.5%) |
| CIE-LAB | lab(37.48, 26.55, -59.06) |
| CIE-LCH | lch(37.48, 64.75, 294.21°) |
| OKLab | oklab(47.1% -0.0061 -0.1703) |
| OKLCH | oklch(47.1% 0.17 268) |
| XYZ | xyz(12.9151, 9.7972, 47.0999) |
| Luminance | 0.0980 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.42
Blue Blue
#2242C7
ΔE00 4.39
Cobalt
#0047AB
ΔE00 4.49
Blue (survey)
#0343DF
ΔE00 5.79
Warm Blue
#4B57DB
ΔE00 6.20
Ocean Blue
#4F42B5
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FB9 #B99D33
analogous
#3392B9 #334FB9 #5A33B9
triadic
#334FB9 #B9334F #4FB933
tetradic
#334FB9 #B93392 #B99D33 #33B95A
square
#334FB9 #B93392 #B99D33 #33B95A
split-complementary
#334FB9 #B95A33 #92B933
monochromatic
#192659 #263B89 #334FB9 #5871D1 #889ADE
Accessibility & contrast
On white
7.10
#334FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#334FB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FB9
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FB9 | 1.00 | 7.10 | 2.96 | 7.10 |
| #FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #334fb9; /* rgb */ color: rgb(51, 79, 185); /* oklch */ color: oklch(47.1% 0.170 268.0);
Tailwind
colors: {
custom: {
50: '#7d80cf',
500: '#334fb9',
950: '#000000',
},
}SCSS
$custom: #334fb9; $custom-light: #7d80cf; $custom-dark: #000000;
JSON
{
"hex": "#334fb9",
"rgb": {
"r": 51,
"g": 79,
"b": 185
},
"hsl": {
"h": 227.463,
"s": 56.78,
"l": 46.275
},
"oklch": {
"l": 0.471,
"c": 0.17038,
"h": 268
},
"luminance": 0.09799
}Semantic roles & 50–950 ramp
primary
#334FB9
secondary
#C8B980
accent
#C048E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82