#336BC6#336BC6

#336BC6 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 53.9% C 0.154 H 259.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#336BC6
RGBrgb(51, 107, 198)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 74%, 78%)
CMYKcmyk(74.2%, 46%, 0%, 22.4%)
CIE-LABlab(46.03, 13.28, -52.79)
CIE-LCHlch(46.03, 54.43, 284.12°)
OKLaboklab(53.89% -0.0275 -0.1514)
OKLCHoklch(53.89% 0.154 259.7)
XYZxyz(16.8123, 15.2945, 55.4812)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BC6 #C68E33
analogous
#33B5C6 #336BC6 #4533C6
triadic
#336BC6 #C6336B #6BC633
tetradic
#336BC6 #C633B5 #C68E33 #33C645
square
#336BC6 #C633B5 #C68E33 #33C645
split-complementary
#336BC6 #C64533 #B5C633
monochromatic
#1A3665 #265195 #336BC6 #608DD6 #91B0E3

Accessibility & contrast

On white

5.17
#336BC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#336BC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BC6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BC6#FFFFFF#000000##FFFFFF
##336BC61.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B74C9
Deuteranopia (green-blind)
#1967C4
Tritanopia (blue-blind)
#00808F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336bc6;
/* rgb */ color: rgb(51, 107, 198);
/* oklch */ color: oklch(53.9% 0.154 259.7);
Tailwind
colors: {
  custom: {
    50: '#7e94d8',
    500: '#336bc6',
    950: '#000000',
  },
}
SCSS
$custom: #336bc6;
$custom-light: #7e94d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336bc6",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 198
  },
  "hsl": {
    "h": 217.143,
    "s": 59.036,
    "l": 48.824
  },
  "oklch": {
    "l": 0.53893,
    "c": 0.15383,
    "h": 259.7
  },
  "luminance": 0.15296
}

Semantic roles & 50–950 ramp

primary
#336BC6
secondary
#CDB387
accent
#A746E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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