#336AB4#336AB4

#336AB4 is a mid, vivid cyan. Relative luminance 0.143; OKLCH L 52.5% C 0.131 H 256.7°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#336AB4
RGBrgb(51, 106, 180)
HSLhsl(214, 56%, 45%)
HSVhsv(214, 72%, 71%)
CMYKcmyk(71.7%, 41.1%, 0%, 29.4%)
CIE-LABlab(44.67, 7.22, -44.55)
CIE-LCHlch(44.67, 45.13, 279.21°)
OKLaboklab(52.49% -0.0301 -0.1272)
OKLCHoklch(52.49% 0.131 256.7)
XYZxyz(14.7545, 14.3056, 45.1548)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AB4 #B47D33
analogous
#33AAB4 #336AB4 #3D33B4
triadic
#336AB4 #B4336A #6AB433
tetradic
#336AB4 #B433AA #B47D33 #33B43D
square
#336AB4 #B433AA #B47D33 #33B43D
split-complementary
#336AB4 #B43D33 #AAB433
monochromatic
#183255 #254E84 #336AB4 #5589CF #85AADC

Accessibility & contrast

On white

5.44
#336AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#336AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AB4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AB4#FFFFFF#000000##FFFFFF
##336AB41.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4770B7
Deuteranopia (green-blind)
#3264B3
Tritanopia (blue-blind)
#007B86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336ab4;
/* rgb */ color: rgb(51, 106, 180);
/* oklch */ color: oklch(52.5% 0.131 256.7);
Tailwind
colors: {
  custom: {
    50: '#7b94cb',
    500: '#336ab4',
    950: '#000000',
  },
}
SCSS
$custom: #336ab4;
$custom-light: #7b94cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336ab4",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 180
  },
  "hsl": {
    "h": 214.419,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52487,
    "c": 0.13067,
    "h": 256.7
  },
  "luminance": 0.14307
}

Semantic roles & 50–950 ramp

primary
#336AB4
secondary
#C6A77D
accent
#9F49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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