#336CC7#336CC7

#336CC7 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.2% C 0.154 H 259.4°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#336CC7
RGBrgb(51, 108, 199)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 74%, 78%)
CMYKcmyk(74.4%, 45.7%, 0%, 22%)
CIE-LABlab(46.38, 13.02, -52.81)
CIE-LCHlch(46.38, 54.39, 283.85°)
OKLaboklab(54.18% -0.0282 -0.1514)
OKLCHoklch(54.18% 0.154 259.4)
XYZxyz(17.0329, 15.5505, 56.1256)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CC7 #C78E33
analogous
#33B6C7 #336CC7 #4433C7
triadic
#336CC7 #C7336C #6CC733
tetradic
#336CC7 #C733B6 #C78E33 #33C744
square
#336CC7 #C733B6 #C78E33 #33C744
split-complementary
#336CC7 #C74433 #B6C733
monochromatic
#1A3766 #275296 #336CC7 #618ED6 #91B1E3

Accessibility & contrast

On white

5.11
#336CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#336CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CC7
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CC7#FFFFFF#000000##FFFFFF
##336CC71.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C75CA
Deuteranopia (green-blind)
#1B68C5
Tritanopia (blue-blind)
#008190
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336cc7;
/* rgb */ color: rgb(51, 108, 199);
/* oklch */ color: oklch(54.2% 0.154 259.4);
Tailwind
colors: {
  custom: {
    50: '#7e95d8',
    500: '#336cc7',
    950: '#000000',
  },
}
SCSS
$custom: #336cc7;
$custom-light: #7e95d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336cc7",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 199
  },
  "hsl": {
    "h": 216.892,
    "s": 59.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54179,
    "c": 0.15401,
    "h": 259.4
  },
  "luminance": 0.15552
}

Semantic roles & 50–950 ramp

primary
#336CC7
secondary
#CEB388
accent
#A645E2
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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