#336BC7#336BC7

#336BC7 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.0% C 0.155 H 259.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#336BC7
RGBrgb(51, 107, 199)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 74%, 78%)
CMYKcmyk(74.4%, 46.2%, 0%, 22%)
CIE-LABlab(46.10, 13.65, -53.26)
CIE-LCHlch(46.10, 54.98, 284.38°)
OKLaboklab(53.96% -0.0274 -0.1527)
OKLCHoklch(53.96% 0.155 259.8)
XYZxyz(16.9280, 15.3408, 56.0907)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BC7 #C78F33
analogous
#33B5C7 #336BC7 #4533C7
triadic
#336BC7 #C7336B #6BC733
tetradic
#336BC7 #C733B5 #C78F33 #33C745
square
#336BC7 #C733B5 #C78F33 #33C745
split-complementary
#336BC7 #C74533 #B5C733
monochromatic
#1A3766 #275196 #336BC7 #618DD6 #91B0E3

Accessibility & contrast

On white

5.16
#336BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#336BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BC7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BC7#FFFFFF#000000##FFFFFF
##336BC71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A74CA
Deuteranopia (green-blind)
#1767C5
Tritanopia (blue-blind)
#00818F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336bc7;
/* rgb */ color: rgb(51, 107, 199);
/* oklch */ color: oklch(54.0% 0.155 259.8);
Tailwind
colors: {
  custom: {
    50: '#7e94d8',
    500: '#336bc7',
    950: '#000000',
  },
}
SCSS
$custom: #336bc7;
$custom-light: #7e94d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336bc7",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 199
  },
  "hsl": {
    "h": 217.297,
    "s": 59.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53962,
    "c": 0.15518,
    "h": 259.8
  },
  "luminance": 0.15343
}

Semantic roles & 50–950 ramp

primary
#336BC7
secondary
#CEB388
accent
#A745E2
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #336BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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