#336DC8#336DC8

#336DC8 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.5% C 0.154 H 259.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#336DC8
RGBrgb(51, 109, 200)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 75%, 78%)
CMYKcmyk(74.5%, 45.5%, 0%, 21.6%)
CIE-LABlab(46.72, 12.76, -52.83)
CIE-LCHlch(46.72, 54.35, 283.58°)
OKLaboklab(54.46% -0.0289 -0.1514)
OKLCHoklch(54.46% 0.154 259.2)
XYZxyz(17.2554, 15.8093, 56.7745)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DC8 #C88E33
analogous
#33B8C8 #336DC8 #4333C8
triadic
#336DC8 #C8336D #6DC833
tetradic
#336DC8 #C833B8 #C88E33 #33C843
square
#336DC8 #C833B8 #C88E33 #33C843
split-complementary
#336DC8 #C84333 #B8C833
monochromatic
#1A3866 #275297 #336DC8 #618FD7 #92B2E3

Accessibility & contrast

On white

5.05
#336DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#336DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DC8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DC8#FFFFFF#000000##FFFFFF
##336DC81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E76CB
Deuteranopia (green-blind)
#1D68C6
Tritanopia (blue-blind)
#008291
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #336dc8;
/* rgb */ color: rgb(51, 109, 200);
/* oklch */ color: oklch(54.5% 0.154 259.2);
Tailwind
colors: {
  custom: {
    50: '#7f96d9',
    500: '#336dc8',
    950: '#000000',
  },
}
SCSS
$custom: #336dc8;
$custom-light: #7f96d9;
$custom-dark: #000000;
JSON
{
  "hex": "#336dc8",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 200
  },
  "hsl": {
    "h": 216.644,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54464,
    "c": 0.15418,
    "h": 259.2
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#336DC8
secondary
#CEB389
accent
#A545E3
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #336DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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