#334FB7#334FB7
#334FB7 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.168 H 267.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #334FB7 |
|---|---|
| RGB | rgb(51, 79, 183) |
| HSL | hsl(227, 56%, 46%) |
| HSV | hsv(227, 72%, 72%) |
| CMYK | cmyk(72.1%, 56.8%, 0%, 28.2%) |
| CIE-LAB | lab(37.32, 25.81, -58.13) |
| CIE-LCH | lch(37.32, 63.60, 293.95°) |
| OKLab | oklab(46.94% -0.0061 -0.1675) |
| OKLCH | oklch(46.94% 0.168 267.9) |
| XYZ | xyz(12.7055, 9.7134, 45.9958) |
| Luminance | 0.0972 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.35
Cobalt
#0047AB
ΔE00 4.33
Blue Blue
#2242C7
ΔE00 4.54
Blue (survey)
#0343DF
ΔE00 6.02
Warm Blue
#4B57DB
ΔE00 6.44
Ocean Blue
#4F42B5
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FB7 #B79B33
analogous
#3391B7 #334FB7 #5933B7
triadic
#334FB7 #B7334F #4FB733
tetradic
#334FB7 #B73391 #B79B33 #33B759
square
#334FB7 #B73391 #B79B33 #33B759
split-complementary
#334FB7 #B75933 #91B733
monochromatic
#182657 #263A87 #334FB7 #5771D0 #8799DE
Accessibility & contrast
On white
7.14
#334FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#334FB7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FB7
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FB7 | 1.00 | 7.14 | 2.94 | 7.14 |
| #FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #334fb7; /* rgb */ color: rgb(51, 79, 183); /* oklch */ color: oklch(46.9% 0.168 267.9);
Tailwind
colors: {
custom: {
50: '#7c7fcd',
500: '#334fb7',
950: '#000000',
},
}SCSS
$custom: #334fb7; $custom-light: #7c7fcd; $custom-dark: #000000;
JSON
{
"hex": "#334fb7",
"rgb": {
"r": 51,
"g": 79,
"b": 183
},
"hsl": {
"h": 227.273,
"s": 56.41,
"l": 45.882
},
"oklch": {
"l": 0.46938,
"c": 0.16766,
"h": 267.9
},
"luminance": 0.09715
}Semantic roles & 50–950 ramp
primary
#334FB7
secondary
#C7B87F
accent
#C048E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82