#336FC4#336FC4
#336FC4 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 54.6% C 0.147 H 257.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #336FC4 |
|---|---|
| RGB | rgb(51, 111, 196) |
| HSL | hsl(215, 59%, 48%) |
| HSV | hsv(215, 74%, 77%) |
| CMYK | cmyk(74%, 43.4%, 0%, 23.1%) |
| CIE-LAB | lab(47.05, 10.01, -50.01) |
| CIE-LCH | lch(47.05, 51.00, 281.32°) |
| OKLab | oklab(54.64% -0.0314 -0.1431) |
| OKLCH | oklch(54.64% 0.147 257.6) |
| XYZ | xyz(17.0098, 16.0563, 54.4166) |
| Luminance | 0.1606 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Medium Blue
#2C6FBB
ΔE00 1.77
Mid Blue
#276AB3
ΔE00 3.15
French Blue
#436BAD
ΔE00 3.36
Windows Blue
#3778BF
ΔE00 3.53
Flat Blue
#3C73A8
ΔE00 3.65
Bluish
#2976BB
ΔE00 4.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#336FC4 #C48833
analogous
#33B7C4 #336FC4 #3F33C4
triadic
#336FC4 #C4336F #6FC433
tetradic
#336FC4 #C433B7 #C48833 #33C43F
square
#336FC4 #C433B7 #C48833 #33C43F
split-complementary
#336FC4 #C43F33 #B7C433
monochromatic
#1A3863 #265393 #336FC4 #5F90D5 #8FB2E2
Accessibility & contrast
On white
4.99
#336FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#336FC4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #336FC4
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##336FC4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##336FC4 | 1.00 | 4.99 | 4.21 | 4.99 |
| #FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4577C7
Deuteranopia (green-blind)
#2A69C2
Tritanopia (blue-blind)
#008390
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #336fc4; /* rgb */ color: rgb(51, 111, 196); /* oklch */ color: oklch(54.6% 0.147 257.6);
Tailwind
colors: {
custom: {
50: '#7e97d6',
500: '#336fc4',
950: '#000000',
},
}SCSS
$custom: #336fc4; $custom-light: #7e97d6; $custom-dark: #000000;
JSON
{
"hex": "#336fc4",
"rgb": {
"r": 51,
"g": 111,
"b": 196
},
"hsl": {
"h": 215.172,
"s": 58.704,
"l": 48.431
},
"oklch": {
"l": 0.54637,
"c": 0.14652,
"h": 257.6
},
"luminance": 0.16058
}Semantic roles & 50–950 ramp
primary
#336FC4
secondary
#CDAF86
accent
#A146E2
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83