#334CBA#334CBA
#334CBA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.6% C 0.175 H 268.8°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #334CBA |
|---|---|
| RGB | rgb(51, 76, 186) |
| HSL | hsl(229, 57%, 46%) |
| HSV | hsv(229, 73%, 73%) |
| CMYK | cmyk(72.6%, 59.1%, 0%, 27.1%) |
| CIE-LAB | lab(36.77, 28.88, -60.79) |
| CIE-LCH | lch(36.77, 67.30, 295.41°) |
| OKLab | oklab(46.6% -0.0038 -0.1754) |
| OKLCH | oklch(46.6% 0.175 268.8) |
| XYZ | xyz(12.8096, 9.4165, 47.5873) |
| Luminance | 0.0942 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.46
Sapphire
#0F52BA
ΔE00 4.17
Cobalt
#0047AB
ΔE00 4.49
Blue (survey)
#0343DF
ΔE00 5.16
Ocean Blue
#4F42B5
ΔE00 5.63
Sapphire (survey)
#2138AB
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CBA #BAA133
analogous
#3390BA #334CBA #5E33BA
triadic
#334CBA #BA334C #4CBA33
tetradic
#334CBA #BA3390 #BAA133 #33BA5E
square
#334CBA #BA3390 #BAA133 #33BA5E
split-complementary
#334CBA #BA5E33 #90BA33
monochromatic
#19255A #26388A #334CBA #596FD1 #8999DF
Accessibility & contrast
On white
7.28
#334CBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#334CBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CBA
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CBA | 1.00 | 7.28 | 2.88 | 7.28 |
| #FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334cba; /* rgb */ color: rgb(51, 76, 186); /* oklch */ color: oklch(46.6% 0.175 268.8);
Tailwind
colors: {
custom: {
50: '#7d7dd0',
500: '#334cba',
950: '#000000',
},
}SCSS
$custom: #334cba; $custom-light: #7d7dd0; $custom-dark: #000000;
JSON
{
"hex": "#334cba",
"rgb": {
"r": 51,
"g": 76,
"b": 186
},
"hsl": {
"h": 228.889,
"s": 56.962,
"l": 46.471
},
"oklch": {
"l": 0.46601,
"c": 0.17543,
"h": 268.8
},
"luminance": 0.09418
}Semantic roles & 50–950 ramp
primary
#334CBA
secondary
#C9BB80
accent
#C448E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82