#334FC5#334FC5
#334FC5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.1% C 0.186 H 268.2°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #334FC5 |
|---|---|
| RGB | rgb(51, 79, 197) |
| HSL | hsl(228, 59%, 49%) |
| HSV | hsv(228, 74%, 77%) |
| CMYK | cmyk(74.1%, 59.9%, 0%, 22.7%) |
| CIE-LAB | lab(38.42, 30.96, -64.54) |
| CIE-LCH | lch(38.42, 71.58, 295.63°) |
| OKLab | oklab(48.1% -0.0058 -0.1864) |
| OKLCH | oklch(48.1% 0.186 268.2) |
| XYZ | xyz(14.2358, 10.3255, 54.0553) |
| Luminance | 0.1033 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.88
Sapphire
#0F52BA
ΔE00 4.19
Blue (survey)
#0343DF
ΔE00 4.57
Warm Blue
#4B57DB
ΔE00 4.86
Cobalt
#0047AB
ΔE00 5.64
Ocean Blue
#4F42B5
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FC5 #C5A933
analogous
#3398C5 #334FC5 #6033C5
triadic
#334FC5 #C5334F #4FC533
tetradic
#334FC5 #C53398 #C5A933 #33C560
square
#334FC5 #C53398 #C5A933 #33C560
split-complementary
#334FC5 #C56033 #98C533
monochromatic
#1A2864 #263C94 #334FC5 #5F76D6 #90A0E2
Accessibility & contrast
On white
6.85
#334FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#334FC5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #334FC5
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FC5 | 1.00 | 6.85 | 3.07 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #334fc5; /* rgb */ color: rgb(51, 79, 197); /* oklch */ color: oklch(48.1% 0.186 268.2);
Tailwind
colors: {
custom: {
50: '#7f80d7',
500: '#334fc5',
950: '#000000',
},
}SCSS
$custom: #334fc5; $custom-light: #7f80d7; $custom-dark: #000000;
JSON
{
"hex": "#334fc5",
"rgb": {
"r": 51,
"g": 79,
"b": 197
},
"hsl": {
"h": 228.493,
"s": 58.871,
"l": 48.627
},
"oklch": {
"l": 0.481,
"c": 0.18645,
"h": 268.2
},
"luminance": 0.10327
}Semantic roles & 50–950 ramp
primary
#334FC5
secondary
#CDC087
accent
#C446E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83