#336EC6#336EC6

#336EC6 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 54.5% C 0.150 H 258.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#336EC6
RGBrgb(51, 110, 198)
HSLhsl(216, 59%, 49%)
HSVhsv(216, 74%, 78%)
CMYKcmyk(74.2%, 44.4%, 0%, 22.4%)
CIE-LABlab(46.88, 11.38, -51.43)
CIE-LCHlch(46.88, 52.67, 282.48°)
OKLaboklab(54.55% -0.0301 -0.1473)
OKLCHoklch(54.55% 0.15 258.4)
XYZxyz(17.1305, 15.9310, 55.5873)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336EC6 #C68B33
analogous
#33B8C6 #336EC6 #4133C6
triadic
#336EC6 #C6336E #6EC633
tetradic
#336EC6 #C633B8 #C68B33 #33C641
square
#336EC6 #C633B8 #C68B33 #33C641
split-complementary
#336EC6 #C64133 #B8C633
monochromatic
#1A3865 #265395 #336EC6 #608FD6 #91B2E3

Accessibility & contrast

On white

5.02
#336EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#336EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336EC6
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336EC6#FFFFFF#000000##FFFFFF
##336EC61.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4176C9
Deuteranopia (green-blind)
#2469C4
Tritanopia (blue-blind)
#008390
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #336ec6;
/* rgb */ color: rgb(51, 110, 198);
/* oklch */ color: oklch(54.5% 0.150 258.4);
Tailwind
colors: {
  custom: {
    50: '#7e97d8',
    500: '#336ec6',
    950: '#000000',
  },
}
SCSS
$custom: #336ec6;
$custom-light: #7e97d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336ec6",
  "rgb": {
    "r": 51,
    "g": 110,
    "b": 198
  },
  "hsl": {
    "h": 215.918,
    "s": 59.036,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54548,
    "c": 0.15034,
    "h": 258.4
  },
  "luminance": 0.15933
}

Semantic roles & 50–950 ramp

primary
#336EC6
secondary
#CDB187
accent
#A346E2
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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