#334FB8#334FB8
#334FB8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.169 H 267.9°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #334FB8 |
|---|---|
| RGB | rgb(51, 79, 184) |
| HSL | hsl(227, 57%, 46%) |
| HSV | hsv(227, 72%, 72%) |
| CMYK | cmyk(72.3%, 57.1%, 0%, 27.8%) |
| CIE-LAB | lab(37.40, 26.18, -58.59) |
| CIE-LCH | lch(37.40, 64.18, 294.08°) |
| OKLab | oklab(47.02% -0.0061 -0.1689) |
| OKLCH | oklch(47.02% 0.169 267.9) |
| XYZ | xyz(12.8100, 9.7551, 46.5459) |
| Luminance | 0.0976 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.38
Cobalt
#0047AB
ΔE00 4.41
Blue Blue
#2242C7
ΔE00 4.47
Blue (survey)
#0343DF
ΔE00 5.90
Warm Blue
#4B57DB
ΔE00 6.32
Ocean Blue
#4F42B5
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FB8 #B89C33
analogous
#3391B8 #334FB8 #5933B8
triadic
#334FB8 #B8334F #4FB833
tetradic
#334FB8 #B83391 #B89C33 #33B859
square
#334FB8 #B83391 #B89C33 #33B859
split-complementary
#334FB8 #B85933 #91B833
monochromatic
#182658 #263A88 #334FB8 #5871D1 #889ADE
Accessibility & contrast
On white
7.12
#334FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#334FB8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FB8
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FB8 | 1.00 | 7.12 | 2.95 | 7.12 |
| #FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0052B6
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #334fb8; /* rgb */ color: rgb(51, 79, 184); /* oklch */ color: oklch(47.0% 0.169 267.9);
Tailwind
colors: {
custom: {
50: '#7d80ce',
500: '#334fb8',
950: '#000000',
},
}SCSS
$custom: #334fb8; $custom-light: #7d80ce; $custom-dark: #000000;
JSON
{
"hex": "#334fb8",
"rgb": {
"r": 51,
"g": 79,
"b": 184
},
"hsl": {
"h": 227.368,
"s": 56.596,
"l": 46.078
},
"oklch": {
"l": 0.47019,
"c": 0.16902,
"h": 267.9
},
"luminance": 0.09756
}Semantic roles & 50–950 ramp
primary
#334FB8
secondary
#C8B87F
accent
#C048E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82