#336DC6#336DC6

#336DC6 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.3% C 0.151 H 258.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#336DC6
RGBrgb(51, 109, 198)
HSLhsl(216, 59%, 49%)
HSVhsv(216, 74%, 78%)
CMYKcmyk(74.2%, 44.9%, 0%, 22.4%)
CIE-LABlab(46.60, 12.01, -51.88)
CIE-LCHlch(46.60, 53.25, 283.04°)
OKLaboklab(54.33% -0.0292 -0.1486)
OKLCHoklch(54.33% 0.152 258.9)
XYZxyz(17.0232, 15.7164, 55.5515)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DC6 #C68C33
analogous
#33B7C6 #336DC6 #4333C6
triadic
#336DC6 #C6336D #6DC633
tetradic
#336DC6 #C633B7 #C68C33 #33C643
square
#336DC6 #C633B7 #C68C33 #33C643
split-complementary
#336DC6 #C64333 #B7C633
monochromatic
#1A3765 #265295 #336DC6 #608FD6 #91B1E3

Accessibility & contrast

On white

5.07
#336DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#336DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DC6
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DC6#FFFFFF#000000##FFFFFF
##336DC61.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F76C9
Deuteranopia (green-blind)
#2168C4
Tritanopia (blue-blind)
#008290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336dc6;
/* rgb */ color: rgb(51, 109, 198);
/* oklch */ color: oklch(54.3% 0.151 258.9);
Tailwind
colors: {
  custom: {
    50: '#7e96d8',
    500: '#336dc6',
    950: '#000000',
  },
}
SCSS
$custom: #336dc6;
$custom-light: #7e96d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336dc6",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 198
  },
  "hsl": {
    "h": 216.327,
    "s": 59.036,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54329,
    "c": 0.1515,
    "h": 258.9
  },
  "luminance": 0.15718
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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