#334CB2#334CB2
#334CB2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.165 H 268.6°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB2 |
|---|---|
| RGB | rgb(51, 76, 178) |
| HSL | hsl(228, 55%, 45%) |
| HSV | hsv(228, 71%, 70%) |
| CMYK | cmyk(71.3%, 57.3%, 0%, 30.2%) |
| CIE-LAB | lab(36.15, 25.93, -57.09) |
| CIE-LCH | lch(36.15, 62.70, 294.43°) |
| OKLab | oklab(45.94% -0.004 -0.1645) |
| OKLCH | oklch(45.94% 0.165 268.6) |
| XYZ | xyz(11.9828, 9.0858, 43.2331) |
| Luminance | 0.0909 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.86
Sapphire
#0F52BA
ΔE00 3.99
Blue Blue
#2242C7
ΔE00 4.19
Ocean Blue
#4F42B5
ΔE00 5.97
Cobalt (survey)
#1E488F
ΔE00 6.02
Sapphire (survey)
#2138AB
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB2 #B29933
analogous
#338CB2 #334CB2 #5933B2
triadic
#334CB2 #B2334C #4CB233
tetradic
#334CB2 #B2338C #B29933 #33B259
square
#334CB2 #B2338C #B29933 #33B259
split-complementary
#334CB2 #B25933 #8CB233
monochromatic
#182353 #253882 #334CB2 #546CCE #8495DC
Accessibility & contrast
On white
7.45
#334CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#334CB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB2
7.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB2 | 1.00 | 7.45 | 2.82 | 7.45 |
| #FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334cb2; /* rgb */ color: rgb(51, 76, 178); /* oklch */ color: oklch(45.9% 0.165 268.6);
Tailwind
colors: {
custom: {
50: '#7b7dca',
500: '#334cb2',
950: '#000000',
},
}SCSS
$custom: #334cb2; $custom-light: #7b7dca; $custom-dark: #000000;
JSON
{
"hex": "#334cb2",
"rgb": {
"r": 51,
"g": 76,
"b": 178
},
"hsl": {
"h": 228.189,
"s": 55.459,
"l": 44.902
},
"oklch": {
"l": 0.45938,
"c": 0.16457,
"h": 268.6
},
"luminance": 0.09087
}Semantic roles & 50–950 ramp
primary
#334CB2
secondary
#C5B77C
accent
#C149DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82