#336CC6#336CC6

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

Color values

HEX#336CC6
RGBrgb(51, 108, 198)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 74%, 78%)
CMYKcmyk(74.2%, 45.5%, 0%, 22.4%)
CIE-LABlab(46.32, 12.65, -52.33)
CIE-LCHlch(46.32, 53.84, 283.58°)
OKLaboklab(54.11% -0.0284 -0.15)
OKLCHoklch(54.11% 0.153 259.3)
XYZxyz(16.9171, 15.5043, 55.5162)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CC6 #C68D33
analogous
#33B6C6 #336CC6 #4433C6
triadic
#336CC6 #C6336C #6CC633
tetradic
#336CC6 #C633B6 #C68D33 #33C644
square
#336CC6 #C633B6 #C68D33 #33C644
split-complementary
#336CC6 #C64433 #B6C633
monochromatic
#1A3765 #265195 #336CC6 #608ED6 #91B1E3

Accessibility & contrast

On white

5.12
#336CC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#336CC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CC6
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CC6#FFFFFF#000000##FFFFFF
##336CC61.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D75C9
Deuteranopia (green-blind)
#1D67C4
Tritanopia (blue-blind)
#00818F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336cc6;
/* rgb */ color: rgb(51, 108, 198);
/* oklch */ color: oklch(54.1% 0.153 259.3);
Tailwind
colors: {
  custom: {
    50: '#7e95d8',
    500: '#336cc6',
    950: '#000000',
  },
}
SCSS
$custom: #336cc6;
$custom-light: #7e95d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336cc6",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 198
  },
  "hsl": {
    "h": 216.735,
    "s": 59.036,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54111,
    "c": 0.15266,
    "h": 259.3
  },
  "luminance": 0.15506
}

Semantic roles & 50–950 ramp

primary
#336CC6
secondary
#CDB287
accent
#A546E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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