#334BBA#334BBA
#334BBA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.177 H 269.0°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #334BBA |
|---|---|
| RGB | rgb(51, 75, 186) |
| HSL | hsl(229, 57%, 46%) |
| HSV | hsv(229, 73%, 73%) |
| CMYK | cmyk(72.6%, 59.7%, 0%, 27.1%) |
| CIE-LAB | lab(36.52, 29.53, -61.21) |
| CIE-LCH | lch(36.52, 67.96, 295.75°) |
| OKLab | oklab(46.41% -0.003 -0.1766) |
| OKLCH | oklch(46.41% 0.177 269) |
| XYZ | xyz(12.7412, 9.2798, 47.5646) |
| Luminance | 0.0928 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.19
Sapphire
#0F52BA
ΔE00 4.42
Cobalt
#0047AB
ΔE00 4.51
Blue (survey)
#0343DF
ΔE00 5.02
Ocean Blue
#4F42B5
ΔE00 5.38
Sapphire (survey)
#2138AB
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BBA #BAA233
analogous
#338FBA #334BBA #5F33BA
triadic
#334BBA #BA334B #4BBA33
tetradic
#334BBA #BA338F #BAA233 #33BA5F
square
#334BBA #BA338F #BAA233 #33BA5F
split-complementary
#334BBA #BA5F33 #8FBA33
monochromatic
#19245A #26388A #334BBA #596ED1 #8998DF
Accessibility & contrast
On white
7.35
#334BBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#334BBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BBA
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BBA | 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)
#005CBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #334bba; /* rgb */ color: rgb(51, 75, 186); /* oklch */ color: oklch(46.4% 0.177 269.0);
Tailwind
colors: {
custom: {
50: '#7d7dd0',
500: '#334bba',
950: '#000000',
},
}SCSS
$custom: #334bba; $custom-light: #7d7dd0; $custom-dark: #000000;
JSON
{
"hex": "#334bba",
"rgb": {
"r": 51,
"g": 75,
"b": 186
},
"hsl": {
"h": 229.333,
"s": 56.962,
"l": 46.471
},
"oklch": {
"l": 0.4641,
"c": 0.17667,
"h": 269
},
"luminance": 0.09281
}Semantic roles & 50–950 ramp
primary
#334BBA
secondary
#C9BC80
accent
#C548E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82