#334BB7#334BB7
#334BB7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.173 H 269.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).
Color values
| HEX | #334BB7 |
|---|---|
| RGB | rgb(51, 75, 183) |
| HSL | hsl(229, 56%, 46%) |
| HSV | hsv(229, 72%, 72%) |
| CMYK | cmyk(72.1%, 59%, 0%, 28.2%) |
| CIE-LAB | lab(36.28, 28.43, -59.83) |
| CIE-LCH | lch(36.28, 66.24, 295.41°) |
| OKLab | oklab(46.16% -0.0031 -0.1726) |
| OKLCH | oklch(46.16% 0.173 269) |
| XYZ | xyz(12.4256, 9.1536, 45.9025) |
| Luminance | 0.0916 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.45
Cobalt
#0047AB
ΔE00 4.25
Sapphire
#0F52BA
ΔE00 4.33
Blue (survey)
#0343DF
ΔE00 5.39
Ocean Blue
#4F42B5
ΔE00 5.48
Sapphire (survey)
#2138AB
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BB7 #B79F33
analogous
#338DB7 #334BB7 #5D33B7
triadic
#334BB7 #B7334B #4BB733
tetradic
#334BB7 #B7338D #B79F33 #33B75D
square
#334BB7 #B7338D #B79F33 #33B75D
split-complementary
#334BB7 #B75D33 #8DB733
monochromatic
#182457 #263787 #334BB7 #576DD0 #8797DE
Accessibility & contrast
On white
7.42
#334BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#334BB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BB7
7.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BB7 | 1.00 | 7.42 | 2.83 | 7.42 |
| #FFFFFF | 7.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334bb7; /* rgb */ color: rgb(51, 75, 183); /* oklch */ color: oklch(46.2% 0.173 269.0);
Tailwind
colors: {
custom: {
50: '#7d7dcd',
500: '#334bb7',
950: '#000000',
},
}SCSS
$custom: #334bb7; $custom-light: #7d7dcd; $custom-dark: #000000;
JSON
{
"hex": "#334bb7",
"rgb": {
"r": 51,
"g": 75,
"b": 183
},
"hsl": {
"h": 229.091,
"s": 56.41,
"l": 45.882
},
"oklch": {
"l": 0.46157,
"c": 0.17262,
"h": 269
},
"luminance": 0.09155
}Semantic roles & 50–950 ramp
primary
#334BB7
secondary
#C7BA7F
accent
#C448E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82