#336DC7#336DC7

#336DC7 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.4% C 0.153 H 259.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#336DC7
RGBrgb(51, 109, 199)
HSLhsl(216, 59%, 49%)
HSVhsv(216, 74%, 78%)
CMYKcmyk(74.4%, 45.2%, 0%, 22%)
CIE-LABlab(46.66, 12.38, -52.36)
CIE-LCHlch(46.66, 53.80, 283.31°)
OKLaboklab(54.4% -0.0291 -0.15)
OKLCHoklch(54.4% 0.153 259)
XYZxyz(17.1389, 15.7627, 56.1610)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DC7 #C78D33
analogous
#33B7C7 #336DC7 #4333C7
triadic
#336DC7 #C7336D #6DC733
tetradic
#336DC7 #C733B7 #C78D33 #33C743
square
#336DC7 #C733B7 #C78D33 #33C743
split-complementary
#336DC7 #C74333 #B7C733
monochromatic
#1A3866 #275296 #336DC7 #618FD6 #91B1E3

Accessibility & contrast

On white

5.06
#336DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#336DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DC7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DC7#FFFFFF#000000##FFFFFF
##336DC71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F76CA
Deuteranopia (green-blind)
#1F68C5
Tritanopia (blue-blind)
#008290
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #336dc7;
/* rgb */ color: rgb(51, 109, 199);
/* oklch */ color: oklch(54.4% 0.153 259.0);
Tailwind
colors: {
  custom: {
    50: '#7e96d8',
    500: '#336dc7',
    950: '#000000',
  },
}
SCSS
$custom: #336dc7;
$custom-light: #7e96d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336dc7",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 199
  },
  "hsl": {
    "h": 216.486,
    "s": 59.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54396,
    "c": 0.15284,
    "h": 259
  },
  "luminance": 0.15765
}

Semantic roles & 50–950 ramp

primary
#336DC7
secondary
#CEB288
accent
#A545E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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