#334CB7#334CB7
#334CB7 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.171 H 268.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB7 |
|---|---|
| RGB | rgb(51, 76, 183) |
| HSL | hsl(229, 56%, 46%) |
| HSV | hsv(229, 72%, 72%) |
| CMYK | cmyk(72.1%, 58.5%, 0%, 28.2%) |
| CIE-LAB | lab(36.54, 27.77, -59.41) |
| CIE-LCH | lch(36.54, 65.58, 295.06°) |
| OKLab | oklab(46.35% -0.0038 -0.1713) |
| OKLCH | oklch(46.35% 0.171 268.7) |
| XYZ | xyz(12.4940, 9.2903, 45.9253) |
| Luminance | 0.0929 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.70
Sapphire
#0F52BA
ΔE00 4.07
Cobalt
#0047AB
ΔE00 4.23
Blue (survey)
#0343DF
ΔE00 5.52
Ocean Blue
#4F42B5
ΔE00 5.73
Sapphire (survey)
#2138AB
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB7 #B79E33
analogous
#338EB7 #334CB7 #5C33B7
triadic
#334CB7 #B7334C #4CB733
tetradic
#334CB7 #B7338E #B79E33 #33B75C
square
#334CB7 #B7338E #B79E33 #33B75C
split-complementary
#334CB7 #B75C33 #8EB733
monochromatic
#182457 #263887 #334CB7 #576ED0 #8797DE
Accessibility & contrast
On white
7.35
#334CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#334CB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB7
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB7 | 1.00 | 7.35 | 2.86 | 7.35 |
| #FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334cb7; /* rgb */ color: rgb(51, 76, 183); /* oklch */ color: oklch(46.4% 0.171 268.7);
Tailwind
colors: {
custom: {
50: '#7c7dcd',
500: '#334cb7',
950: '#000000',
},
}SCSS
$custom: #334cb7; $custom-light: #7c7dcd; $custom-dark: #000000;
JSON
{
"hex": "#334cb7",
"rgb": {
"r": 51,
"g": 76,
"b": 183
},
"hsl": {
"h": 228.636,
"s": 56.41,
"l": 45.882
},
"oklch": {
"l": 0.4635,
"c": 0.17138,
"h": 268.7
},
"luminance": 0.09292
}Semantic roles & 50–950 ramp
primary
#334CB7
secondary
#C7B97F
accent
#C348E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82