#334FBE#334FBE
#334FBE is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.5% C 0.177 H 268.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).
Color values
| HEX | #334FBE |
|---|---|
| RGB | rgb(51, 79, 190) |
| HSL | hsl(228, 58%, 47%) |
| HSV | hsv(228, 73%, 75%) |
| CMYK | cmyk(73.2%, 58.4%, 0%, 25.5%) |
| CIE-LAB | lab(37.86, 28.40, -61.36) |
| CIE-LCH | lch(37.86, 67.61, 294.83°) |
| OKLab | oklab(47.51% -0.0059 -0.177) |
| OKLCH | oklch(47.51% 0.177 268.1) |
| XYZ | xyz(13.4523, 10.0121, 49.9288) |
| Luminance | 0.1001 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.68
Blue Blue
#2242C7
ΔE00 4.10
Cobalt
#0047AB
ΔE00 4.93
Blue (survey)
#0343DF
ΔE00 5.24
Warm Blue
#4B57DB
ΔE00 5.62
Ocean Blue
#4F42B5
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FBE #BEA233
analogous
#3394BE #334FBE #5D33BE
triadic
#334FBE #BE334F #4FBE33
tetradic
#334FBE #BE3394 #BEA233 #33BE5D
square
#334FBE #BE3394 #BEA233 #33BE5D
split-complementary
#334FBE #BE5D33 #94BE33
monochromatic
#19275E #263B8E #334FBE #5B73D3 #8B9CE0
Accessibility & contrast
On white
6.99
#334FBE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.00
#334FBE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #334FBE
6.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FBE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FBE | 1.00 | 6.99 | 3.00 | 6.99 |
| #FFFFFF | 6.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #334fbe; /* rgb */ color: rgb(51, 79, 190); /* oklch */ color: oklch(47.5% 0.177 268.1);
Tailwind
colors: {
custom: {
50: '#7e80d2',
500: '#334fbe',
950: '#000000',
},
}SCSS
$custom: #334fbe; $custom-light: #7e80d2; $custom-dark: #000000;
JSON
{
"hex": "#334fbe",
"rgb": {
"r": 51,
"g": 79,
"b": 190
},
"hsl": {
"h": 227.914,
"s": 57.676,
"l": 47.255
},
"oklch": {
"l": 0.47512,
"c": 0.17713,
"h": 268.1
},
"luminance": 0.10013
}Semantic roles & 50–950 ramp
primary
#334FBE
secondary
#CABC83
accent
#C247E1
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83