#336CC8#336CC8

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

Color values

HEX#336CC8
RGBrgb(51, 108, 200)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 75%, 78%)
CMYKcmyk(74.5%, 46%, 0%, 21.6%)
CIE-LABlab(46.44, 13.39, -53.28)
CIE-LCHlch(46.44, 54.94, 284.11°)
OKLaboklab(54.25% -0.028 -0.1528)
OKLCHoklch(54.25% 0.155 259.6)
XYZxyz(17.1493, 15.5971, 56.7391)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CC8 #C88F33
analogous
#33B7C8 #336CC8 #4533C8
triadic
#336CC8 #C8336C #6CC833
tetradic
#336CC8 #C833B7 #C88F33 #33C845
square
#336CC8 #C833B7 #C88F33 #33C845
split-complementary
#336CC8 #C84533 #B7C833
monochromatic
#1A3766 #275297 #336CC8 #618ED7 #92B1E3

Accessibility & contrast

On white

5.10
#336CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#336CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CC8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CC8#FFFFFF#000000##FFFFFF
##336CC81.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C75CB
Deuteranopia (green-blind)
#1968C6
Tritanopia (blue-blind)
#008290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336cc8;
/* rgb */ color: rgb(51, 108, 200);
/* oklch */ color: oklch(54.2% 0.155 259.6);
Tailwind
colors: {
  custom: {
    50: '#7f95d9',
    500: '#336cc8',
    950: '#000000',
  },
}
SCSS
$custom: #336cc8;
$custom-light: #7f95d9;
$custom-dark: #000000;
JSON
{
  "hex": "#336cc8",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 200
  },
  "hsl": {
    "h": 217.047,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54247,
    "c": 0.15535,
    "h": 259.6
  },
  "luminance": 0.15599
}

Semantic roles & 50–950 ramp

primary
#336CC8
secondary
#CEB489
accent
#A645E3
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #336CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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