#334CB3#334CB3
#334CB3 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.166 H 268.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB3 |
|---|---|
| RGB | rgb(51, 76, 179) |
| HSL | hsl(228, 56%, 45%) |
| HSV | hsv(228, 72%, 70%) |
| CMYK | cmyk(71.5%, 57.5%, 0%, 29.8%) |
| CIE-LAB | lab(36.23, 26.30, -57.55) |
| CIE-LCH | lch(36.23, 63.28, 294.56°) |
| OKLab | oklab(46.02% -0.0039 -0.1659) |
| OKLCH | oklch(46.02% 0.166 268.6) |
| XYZ | xyz(12.0836, 9.1261, 43.7638) |
| Luminance | 0.0913 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.92
Sapphire
#0F52BA
ΔE00 4.00
Blue Blue
#2242C7
ΔE00 4.08
Ocean Blue
#4F42B5
ΔE00 5.92
Blue (survey)
#0343DF
ΔE00 6.02
Sapphire (survey)
#2138AB
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB3 #B39A33
analogous
#338CB3 #334CB3 #5A33B3
triadic
#334CB3 #B3334C #4CB333
tetradic
#334CB3 #B3338C #B39A33 #33B35A
square
#334CB3 #B3338C #B39A33 #33B35A
split-complementary
#334CB3 #B35A33 #8CB333
monochromatic
#182454 #253883 #334CB3 #556CCE #8495DC
Accessibility & contrast
On white
7.43
#334CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#334CB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB3
7.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB3 | 1.00 | 7.43 | 2.83 | 7.43 |
| #FFFFFF | 7.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334cb3; /* rgb */ color: rgb(51, 76, 179); /* oklch */ color: oklch(46.0% 0.166 268.6);
Tailwind
colors: {
custom: {
50: '#7c7dcb',
500: '#334cb3',
950: '#000000',
},
}SCSS
$custom: #334cb3; $custom-light: #7c7dcb; $custom-dark: #000000;
JSON
{
"hex": "#334cb3",
"rgb": {
"r": 51,
"g": 76,
"b": 179
},
"hsl": {
"h": 228.281,
"s": 55.652,
"l": 45.098
},
"oklch": {
"l": 0.4602,
"c": 0.16594,
"h": 268.6
},
"luminance": 0.09127
}Semantic roles & 50–950 ramp
primary
#334CB3
secondary
#C6B77C
accent
#C249DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82