#336AB6#336AB6

#336AB6 is a mid, vivid cyan. Relative luminance 0.144; OKLCH L 52.6% C 0.133 H 257.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#336AB6
RGBrgb(51, 106, 182)
HSLhsl(215, 56%, 46%)
HSVhsv(215, 72%, 71%)
CMYKcmyk(72%, 41.8%, 0%, 28.6%)
CIE-LABlab(44.78, 7.96, -45.53)
CIE-LCHlch(44.78, 46.22, 279.92°)
OKLaboklab(52.62% -0.0297 -0.13)
OKLCHoklch(52.62% 0.133 257.1)
XYZxyz(14.9597, 14.3877, 46.2356)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AB6 #B67F33
analogous
#33ABB6 #336AB6 #3D33B6
triadic
#336AB6 #B6336A #6AB633
tetradic
#336AB6 #B633AB #B67F33 #33B63D
square
#336AB6 #B633AB #B67F33 #33B63D
split-complementary
#336AB6 #B63D33 #ABB633
monochromatic
#183256 #264E86 #336AB6 #5689D0 #86ABDD

Accessibility & contrast

On white

5.42
#336AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#336AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AB6
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AB6#FFFFFF#000000##FFFFFF
##336AB61.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4670B9
Deuteranopia (green-blind)
#3064B4
Tritanopia (blue-blind)
#007C87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336ab6;
/* rgb */ color: rgb(51, 106, 182);
/* oklch */ color: oklch(52.6% 0.133 257.1);
Tailwind
colors: {
  custom: {
    50: '#7b94cc',
    500: '#336ab6',
    950: '#000000',
  },
}
SCSS
$custom: #336ab6;
$custom-light: #7b94cc;
$custom-dark: #000000;
JSON
{
  "hex": "#336ab6",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 182
  },
  "hsl": {
    "h": 214.809,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52615,
    "c": 0.13338,
    "h": 257.1
  },
  "luminance": 0.14389
}

Semantic roles & 50–950 ramp

primary
#336AB6
secondary
#C7A87E
accent
#A048E0
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #336AB6

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#336AB6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva