#334CB8#334CB8
#334CB8 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.173 H 268.7°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB8 |
|---|---|
| RGB | rgb(51, 76, 184) |
| HSL | hsl(229, 57%, 46%) |
| HSV | hsv(229, 72%, 72%) |
| CMYK | cmyk(72.3%, 58.7%, 0%, 27.8%) |
| CIE-LAB | lab(36.62, 28.14, -59.87) |
| CIE-LCH | lch(36.62, 66.15, 295.18°) |
| OKLab | oklab(46.43% -0.0038 -0.1727) |
| OKLCH | oklch(46.43% 0.173 268.7) |
| XYZ | xyz(12.5984, 9.3321, 46.4754) |
| Luminance | 0.0933 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.62
Sapphire
#0F52BA
ΔE00 4.09
Cobalt
#0047AB
ΔE00 4.31
Blue (survey)
#0343DF
ΔE00 5.40
Ocean Blue
#4F42B5
ΔE00 5.70
Sapphire (survey)
#2138AB
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB8 #B89F33
analogous
#338EB8 #334CB8 #5C33B8
triadic
#334CB8 #B8334C #4CB833
tetradic
#334CB8 #B8338E #B89F33 #33B85C
square
#334CB8 #B8338E #B89F33 #33B85C
split-complementary
#334CB8 #B85C33 #8EB833
monochromatic
#182458 #263888 #334CB8 #586ED1 #8898DE
Accessibility & contrast
On white
7.33
#334CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#334CB8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB8
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB8 | 1.00 | 7.33 | 2.87 | 7.33 |
| #FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334cb8; /* rgb */ color: rgb(51, 76, 184); /* oklch */ color: oklch(46.4% 0.173 268.7);
Tailwind
colors: {
custom: {
50: '#7d7dce',
500: '#334cb8',
950: '#000000',
},
}SCSS
$custom: #334cb8; $custom-light: #7d7dce; $custom-dark: #000000;
JSON
{
"hex": "#334cb8",
"rgb": {
"r": 51,
"g": 76,
"b": 184
},
"hsl": {
"h": 228.722,
"s": 56.596,
"l": 46.078
},
"oklch": {
"l": 0.46433,
"c": 0.17274,
"h": 268.7
},
"luminance": 0.09333
}Semantic roles & 50–950 ramp
primary
#334CB8
secondary
#C8BA7F
accent
#C348E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82