#334FB5#334FB5
#334FB5 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.165 H 267.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #334FB5 |
|---|---|
| RGB | rgb(51, 79, 181) |
| HSL | hsl(227, 56%, 45%) |
| HSV | hsv(227, 72%, 71%) |
| CMYK | cmyk(71.8%, 56.4%, 0%, 29%) |
| CIE-LAB | lab(37.17, 25.07, -57.20) |
| CIE-LCH | lch(37.17, 62.45, 293.67°) |
| OKLab | oklab(46.78% -0.0062 -0.1648) |
| OKLCH | oklch(46.78% 0.165 267.8) |
| XYZ | xyz(12.4988, 9.6307, 44.9073) |
| Luminance | 0.0963 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.31
Cobalt
#0047AB
ΔE00 4.18
Blue Blue
#2242C7
ΔE00 4.71
Blue (survey)
#0343DF
ΔE00 6.25
Cobalt (survey)
#1E488F
ΔE00 6.31
Denim Blue
#3B5B92
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FB5 #B59933
analogous
#3390B5 #334FB5 #5833B5
triadic
#334FB5 #B5334F #4FB533
tetradic
#334FB5 #B53390 #B59933 #33B558
square
#334FB5 #B53390 #B59933 #33B558
split-complementary
#334FB5 #B55833 #90B533
monochromatic
#182556 #263A85 #334FB5 #5670CF #8698DD
Accessibility & contrast
On white
7.18
#334FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#334FB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FB5
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FB5 | 1.00 | 7.18 | 2.93 | 7.18 |
| #FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #334fb5; /* rgb */ color: rgb(51, 79, 181); /* oklch */ color: oklch(46.8% 0.165 267.8);
Tailwind
colors: {
custom: {
50: '#7c7fcc',
500: '#334fb5',
950: '#000000',
},
}SCSS
$custom: #334fb5; $custom-light: #7c7fcc; $custom-dark: #000000;
JSON
{
"hex": "#334fb5",
"rgb": {
"r": 51,
"g": 79,
"b": 181
},
"hsl": {
"h": 227.077,
"s": 56.034,
"l": 45.49
},
"oklch": {
"l": 0.46776,
"c": 0.16493,
"h": 267.8
},
"luminance": 0.09632
}Semantic roles & 50–950 ramp
primary
#334FB5
secondary
#C6B77D
accent
#BF48DF
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82