#336EC8#336EC8

#336EC8 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 54.7% C 0.153 H 258.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#336EC8
RGBrgb(51, 110, 200)
HSLhsl(216, 59%, 49%)
HSVhsv(216, 75%, 78%)
CMYKcmyk(74.5%, 45%, 0%, 21.6%)
CIE-LABlab(47.01, 12.13, -52.38)
CIE-LCHlch(47.01, 53.76, 283.03°)
OKLaboklab(54.68% -0.0297 -0.1501)
OKLCHoklch(54.68% 0.153 258.8)
XYZxyz(17.3627, 16.0239, 56.8102)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336EC8 #C88D33
analogous
#33B9C8 #336EC8 #4333C8
triadic
#336EC8 #C8336E #6EC833
tetradic
#336EC8 #C833B9 #C88D33 #33C843
square
#336EC8 #C833B9 #C88D33 #33C843
split-complementary
#336EC8 #C84333 #B9C833
monochromatic
#1A3866 #275397 #336EC8 #6190D7 #92B2E3

Accessibility & contrast

On white

4.99
#336EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#336EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336EC8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336EC8#FFFFFF#000000##FFFFFF
##336EC81.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4077CB
Deuteranopia (green-blind)
#2069C6
Tritanopia (blue-blind)
#008391
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #336ec8;
/* rgb */ color: rgb(51, 110, 200);
/* oklch */ color: oklch(54.7% 0.153 258.8);
Tailwind
colors: {
  custom: {
    50: '#7e97d9',
    500: '#336ec8',
    950: '#000000',
  },
}
SCSS
$custom: #336ec8;
$custom-light: #7e97d9;
$custom-dark: #000000;
JSON
{
  "hex": "#336ec8",
  "rgb": {
    "r": 51,
    "g": 110,
    "b": 200
  },
  "hsl": {
    "h": 216.242,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54682,
    "c": 0.15302,
    "h": 258.8
  },
  "luminance": 0.16026
}

Semantic roles & 50–950 ramp

primary
#336EC8
secondary
#CEB389
accent
#A445E3
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #336EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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