#334FB6#334FB6
#334FB6 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.166 H 267.9°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #334FB6 |
|---|---|
| RGB | rgb(51, 79, 182) |
| HSL | hsl(227, 56%, 46%) |
| HSV | hsv(227, 72%, 71%) |
| CMYK | cmyk(72%, 56.6%, 0%, 28.6%) |
| CIE-LAB | lab(37.25, 25.44, -57.66) |
| CIE-LCH | lch(37.25, 63.03, 293.81°) |
| OKLab | oklab(46.86% -0.0062 -0.1662) |
| OKLCH | oklch(46.86% 0.166 267.9) |
| XYZ | xyz(12.6018, 9.6719, 45.4496) |
| Luminance | 0.0967 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.33
Cobalt
#0047AB
ΔE00 4.25
Blue Blue
#2242C7
ΔE00 4.62
Blue (survey)
#0343DF
ΔE00 6.14
Cobalt (survey)
#1E488F
ΔE00 6.44
Warm Blue
#4B57DB
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FB6 #B69A33
analogous
#3390B6 #334FB6 #5933B6
triadic
#334FB6 #B6334F #4FB633
tetradic
#334FB6 #B63390 #B69A33 #33B659
square
#334FB6 #B63390 #B69A33 #33B659
split-complementary
#334FB6 #B65933 #90B633
monochromatic
#182556 #263A86 #334FB6 #5670D0 #8699DD
Accessibility & contrast
On white
7.16
#334FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#334FB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FB6
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FB6 | 1.00 | 7.16 | 2.93 | 7.16 |
| #FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #334fb6; /* rgb */ color: rgb(51, 79, 182); /* oklch */ color: oklch(46.9% 0.166 267.9);
Tailwind
colors: {
custom: {
50: '#7c7fcd',
500: '#334fb6',
950: '#000000',
},
}SCSS
$custom: #334fb6; $custom-light: #7c7fcd; $custom-dark: #000000;
JSON
{
"hex": "#334fb6",
"rgb": {
"r": 51,
"g": 79,
"b": 182
},
"hsl": {
"h": 227.176,
"s": 56.223,
"l": 45.686
},
"oklch": {
"l": 0.46857,
"c": 0.1663,
"h": 267.9
},
"luminance": 0.09673
}Semantic roles & 50–950 ramp
primary
#334FB6
secondary
#C7B77E
accent
#BF48E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82