#336AB7#336AB7
#336AB7 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 52.7% C 0.135 H 257.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #336AB7 |
|---|---|
| RGB | rgb(51, 106, 183) |
| HSL | hsl(215, 56%, 46%) |
| HSV | hsv(215, 72%, 72%) |
| CMYK | cmyk(72.1%, 42.1%, 0%, 28.2%) |
| CIE-LAB | lab(44.84, 8.33, -46.02) |
| CIE-LCH | lch(44.84, 46.76, 280.26°) |
| OKLab | oklab(52.68% -0.0295 -0.1315) |
| OKLCH | oklch(52.68% 0.135 257.4) |
| XYZ | xyz(15.0634, 14.4291, 46.7818) |
| Luminance | 0.1443 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mid Blue
#276AB3
ΔE00 1.77
French Blue
#436BAD
ΔE00 2.10
Medium Blue
#2C6FBB
ΔE00 2.28
Denim
#1560BD
ΔE00 3.52
Flat Blue
#3C73A8
ΔE00 3.98
Muted Blue
#3B719F
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#336AB7 #B78033
analogous
#33ACB7 #336AB7 #3E33B7
triadic
#336AB7 #B7336A #6AB733
tetradic
#336AB7 #B733AC #B78033 #33B73E
square
#336AB7 #B733AC #B78033 #33B73E
split-complementary
#336AB7 #B73E33 #ACB733
monochromatic
#183357 #264E87 #336AB7 #578AD0 #87ABDE
Accessibility & contrast
On white
5.40
#336AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#336AB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #336AB7
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##336AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##336AB7 | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4571BA
Deuteranopia (green-blind)
#2F64B5
Tritanopia (blue-blind)
#007C87
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #336ab7; /* rgb */ color: rgb(51, 106, 183); /* oklch */ color: oklch(52.7% 0.135 257.4);
Tailwind
colors: {
custom: {
50: '#7b94cd',
500: '#336ab7',
950: '#000000',
},
}SCSS
$custom: #336ab7; $custom-light: #7b94cd; $custom-dark: #000000;
JSON
{
"hex": "#336ab7",
"rgb": {
"r": 51,
"g": 106,
"b": 183
},
"hsl": {
"h": 215,
"s": 56.41,
"l": 45.882
},
"oklch": {
"l": 0.52679,
"c": 0.13473,
"h": 257.4
},
"luminance": 0.14431
}Semantic roles & 50–950 ramp
primary
#336AB7
secondary
#C7A97F
accent
#A148E0
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82