#336EB4#336EB4

#336EB4 is a mid, vivid cyan. Relative luminance 0.152; OKLCH L 53.4% C 0.126 H 254.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#336EB4
RGBrgb(51, 110, 180)
HSLhsl(213, 56%, 45%)
HSVhsv(213, 72%, 71%)
CMYKcmyk(71.7%, 38.9%, 0%, 29.4%)
CIE-LABlab(45.84, 4.71, -42.68)
CIE-LCHlch(45.84, 42.94, 276.30°)
OKLaboklab(53.4% -0.0339 -0.1216)
OKLCHoklch(53.4% 0.126 254.4)
XYZxyz(15.1764, 15.1493, 45.2954)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336EB4 #B47933
analogous
#33AEB4 #336EB4 #3833B4
triadic
#336EB4 #B4336E #6EB433
tetradic
#336EB4 #B433AE #B47933 #33B438
square
#336EB4 #B433AE #B47933 #33B438
split-complementary
#336EB4 #B43833 #AEB433
monochromatic
#183455 #255184 #336EB4 #558DCF #85ADDC

Accessibility & contrast

On white

5.21
#336EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#336EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336EB4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336EB4#FFFFFF#000000##FFFFFF
##336EB41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E73B7
Deuteranopia (green-blind)
#3A67B3
Tritanopia (blue-blind)
#007E88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336eb4;
/* rgb */ color: rgb(51, 110, 180);
/* oklch */ color: oklch(53.4% 0.126 254.4);
Tailwind
colors: {
  custom: {
    50: '#7b97cb',
    500: '#336eb4',
    950: '#000000',
  },
}
SCSS
$custom: #336eb4;
$custom-light: #7b97cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336eb4",
  "rgb": {
    "r": 51,
    "g": 110,
    "b": 180
  },
  "hsl": {
    "h": 212.558,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53398,
    "c": 0.12627,
    "h": 254.4
  },
  "luminance": 0.15151
}

Semantic roles & 50–950 ramp

primary
#336EB4
secondary
#C6A57D
accent
#9A49DF
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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