#334FBB#334FBB
#334FBB is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.173 H 268.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).
Color values
| HEX | #334FBB |
|---|---|
| RGB | rgb(51, 79, 187) |
| HSL | hsl(228, 57%, 47%) |
| HSV | hsv(228, 73%, 73%) |
| CMYK | cmyk(72.7%, 57.8%, 0%, 26.7%) |
| CIE-LAB | lab(37.63, 27.29, -59.98) |
| CIE-LCH | lch(37.63, 65.90, 294.47°) |
| OKLab | oklab(47.26% -0.006 -0.173) |
| OKLCH | oklch(47.26% 0.173 268) |
| XYZ | xyz(13.1278, 9.8823, 48.2197) |
| Luminance | 0.0988 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.51
Blue Blue
#2242C7
ΔE00 4.26
Cobalt
#0047AB
ΔE00 4.66
Blue (survey)
#0343DF
ΔE00 5.57
Warm Blue
#4B57DB
ΔE00 5.96
Ocean Blue
#4F42B5
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FBB #BB9F33
analogous
#3393BB #334FBB #5B33BB
triadic
#334FBB #BB334F #4FBB33
tetradic
#334FBB #BB3393 #BB9F33 #33BB5B
square
#334FBB #BB3393 #BB9F33 #33BB5B
split-complementary
#334FBB #BB5B33 #93BB33
monochromatic
#19265B #263B8B #334FBB #5972D2 #899BDF
Accessibility & contrast
On white
7.05
#334FBB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#334FBB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FBB
7.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FBB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FBB | 1.00 | 7.05 | 2.98 | 7.05 |
| #FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #334fbb; /* rgb */ color: rgb(51, 79, 187); /* oklch */ color: oklch(47.3% 0.173 268.0);
Tailwind
colors: {
custom: {
50: '#7d80d0',
500: '#334fbb',
950: '#000000',
},
}SCSS
$custom: #334fbb; $custom-light: #7d80d0; $custom-dark: #000000;
JSON
{
"hex": "#334fbb",
"rgb": {
"r": 51,
"g": 79,
"b": 187
},
"hsl": {
"h": 227.647,
"s": 57.143,
"l": 46.667
},
"oklch": {
"l": 0.47264,
"c": 0.17308,
"h": 268
},
"luminance": 0.09884
}Semantic roles & 50–950 ramp
primary
#334FBB
secondary
#C9BA81
accent
#C147E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82