#334FBC#334FBC
#334FBC is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.174 H 268.0°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).
Color values
| HEX | #334FBC |
|---|---|
| RGB | rgb(51, 79, 188) |
| HSL | hsl(228, 57%, 47%) |
| HSV | hsv(228, 73%, 74%) |
| CMYK | cmyk(72.9%, 58%, 0%, 26.3%) |
| CIE-LAB | lab(37.71, 27.66, -60.44) |
| CIE-LCH | lch(37.71, 66.47, 294.59°) |
| OKLab | oklab(47.35% -0.006 -0.1743) |
| OKLCH | oklch(47.35% 0.174 268) |
| XYZ | xyz(13.2352, 9.9252, 48.7854) |
| Luminance | 0.0993 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.56
Blue Blue
#2242C7
ΔE00 4.20
Cobalt
#0047AB
ΔE00 4.75
Blue (survey)
#0343DF
ΔE00 5.46
Warm Blue
#4B57DB
ΔE00 5.85
Ocean Blue
#4F42B5
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FBC #BCA033
analogous
#3394BC #334FBC #5C33BC
triadic
#334FBC #BC334F #4FBC33
tetradic
#334FBC #BC3394 #BCA033 #33BC5C
square
#334FBC #BC3394 #BCA033 #33BC5C
split-complementary
#334FBC #BC5C33 #94BC33
monochromatic
#19275C #263B8C #334FBC #5A73D2 #8A9CDF
Accessibility & contrast
On white
7.03
#334FBC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#334FBC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FBC
7.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FBC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FBC | 1.00 | 7.03 | 2.99 | 7.03 |
| #FFFFFF | 7.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #334fbc; /* rgb */ color: rgb(51, 79, 188); /* oklch */ color: oklch(47.3% 0.174 268.0);
Tailwind
colors: {
custom: {
50: '#7d80d1',
500: '#334fbc',
950: '#000000',
},
}SCSS
$custom: #334fbc; $custom-light: #7d80d1; $custom-dark: #000000;
JSON
{
"hex": "#334fbc",
"rgb": {
"r": 51,
"g": 79,
"b": 188
},
"hsl": {
"h": 227.737,
"s": 57.322,
"l": 46.863
},
"oklch": {
"l": 0.47347,
"c": 0.17444,
"h": 268
},
"luminance": 0.09927
}Semantic roles & 50–950 ramp
primary
#334FBC
secondary
#C9BB81
accent
#C147E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82