#336AB8#336AB8
#336AB8 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 52.7% C 0.136 H 257.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #336AB8 |
|---|---|
| RGB | rgb(51, 106, 184) |
| HSL | hsl(215, 57%, 46%) |
| HSV | hsv(215, 72%, 72%) |
| CMYK | cmyk(72.3%, 42.4%, 0%, 27.8%) |
| CIE-LAB | lab(44.90, 8.70, -46.50) |
| CIE-LCH | lch(44.90, 47.31, 280.60°) |
| OKLab | oklab(52.74% -0.0293 -0.1329) |
| OKLCH | oklch(52.74% 0.136 257.6) |
| XYZ | xyz(15.1679, 14.4709, 47.3319) |
| Luminance | 0.1447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mid Blue
#276AB3
ΔE00 1.87
French Blue
#436BAD
ΔE00 2.11
Medium Blue
#2C6FBB
ΔE00 2.31
Denim
#1560BD
ΔE00 3.51
Flat Blue
#3C73A8
ΔE00 4.04
Muted Blue
#3B719F
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#336AB8 #B88133
analogous
#33ACB8 #336AB8 #3E33B8
triadic
#336AB8 #B8336A #6AB833
tetradic
#336AB8 #B833AC #B88133 #33B83E
square
#336AB8 #B833AC #B88133 #33B83E
split-complementary
#336AB8 #B83E33 #ACB833
monochromatic
#183358 #264E88 #336AB8 #588AD1 #88ABDE
Accessibility & contrast
On white
5.39
#336AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#336AB8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #336AB8
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##336AB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##336AB8 | 1.00 | 5.39 | 3.89 | 5.39 |
| #FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4471BB
Deuteranopia (green-blind)
#2E65B6
Tritanopia (blue-blind)
#007C88
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #336ab8; /* rgb */ color: rgb(51, 106, 184); /* oklch */ color: oklch(52.7% 0.136 257.6);
Tailwind
colors: {
custom: {
50: '#7b94ce',
500: '#336ab8',
950: '#000000',
},
}SCSS
$custom: #336ab8; $custom-light: #7b94ce; $custom-dark: #000000;
JSON
{
"hex": "#336ab8",
"rgb": {
"r": 51,
"g": 106,
"b": 184
},
"hsl": {
"h": 215.188,
"s": 56.596,
"l": 46.078
},
"oklch": {
"l": 0.52743,
"c": 0.13609,
"h": 257.6
},
"luminance": 0.14473
}Semantic roles & 50–950 ramp
primary
#336AB8
secondary
#C8AA7F
accent
#A148E0
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82