#334CB9#334CB9
#334CB9 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.174 H 268.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB9 |
|---|---|
| RGB | rgb(51, 76, 185) |
| HSL | hsl(229, 57%, 46%) |
| HSV | hsv(229, 72%, 73%) |
| CMYK | cmyk(72.4%, 58.9%, 0%, 27.5%) |
| CIE-LAB | lab(36.70, 28.51, -60.33) |
| CIE-LCH | lch(36.70, 66.73, 295.29°) |
| OKLab | oklab(46.52% -0.0038 -0.174) |
| OKLCH | oklch(46.52% 0.174 268.8) |
| XYZ | xyz(12.7036, 9.3742, 47.0294) |
| Luminance | 0.0938 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.54
Sapphire
#0F52BA
ΔE00 4.13
Cobalt
#0047AB
ΔE00 4.40
Blue (survey)
#0343DF
ΔE00 5.28
Ocean Blue
#4F42B5
ΔE00 5.66
Sapphire (survey)
#2138AB
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB9 #B9A033
analogous
#338FB9 #334CB9 #5D33B9
triadic
#334CB9 #B9334C #4CB933
tetradic
#334CB9 #B9338F #B9A033 #33B95D
square
#334CB9 #B9338F #B9A033 #33B95D
split-complementary
#334CB9 #B95D33 #8FB933
monochromatic
#192559 #263889 #334CB9 #586FD1 #8898DE
Accessibility & contrast
On white
7.30
#334CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#334CB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB9
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB9 | 1.00 | 7.30 | 2.87 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334cb9; /* rgb */ color: rgb(51, 76, 185); /* oklch */ color: oklch(46.5% 0.174 268.8);
Tailwind
colors: {
custom: {
50: '#7d7dcf',
500: '#334cb9',
950: '#000000',
},
}SCSS
$custom: #334cb9; $custom-light: #7d7dcf; $custom-dark: #000000;
JSON
{
"hex": "#334cb9",
"rgb": {
"r": 51,
"g": 76,
"b": 185
},
"hsl": {
"h": 228.806,
"s": 56.78,
"l": 46.275
},
"oklch": {
"l": 0.46517,
"c": 0.17409,
"h": 268.8
},
"luminance": 0.09375
}Semantic roles & 50–950 ramp
primary
#334CB9
secondary
#C8BB80
accent
#C448E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82