#336BC8#336BC8

#336BC8 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.0% C 0.157 H 260.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#336BC8
RGBrgb(51, 107, 200)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 75%, 78%)
CMYKcmyk(74.5%, 46.5%, 0%, 21.6%)
CIE-LABlab(46.16, 14.03, -53.74)
CIE-LCHlch(46.16, 55.54, 284.63°)
OKLaboklab(54.03% -0.0272 -0.1541)
OKLCHoklch(54.03% 0.157 260)
XYZxyz(17.0445, 15.3874, 56.7042)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BC8 #C89033
analogous
#33B6C8 #336BC8 #4633C8
triadic
#336BC8 #C8336B #6BC833
tetradic
#336BC8 #C833B6 #C89033 #33C846
square
#336BC8 #C833B6 #C89033 #33C846
split-complementary
#336BC8 #C84633 #B6C833
monochromatic
#1A3766 #275197 #336BC8 #618ED7 #92B1E3

Accessibility & contrast

On white

5.15
#336BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#336BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BC8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BC8#FFFFFF#000000##FFFFFF
##336BC81.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3975CB
Deuteranopia (green-blind)
#1467C6
Tritanopia (blue-blind)
#008190
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336bc8;
/* rgb */ color: rgb(51, 107, 200);
/* oklch */ color: oklch(54.0% 0.157 260.0);
Tailwind
colors: {
  custom: {
    50: '#7f94d9',
    500: '#336bc8',
    950: '#000000',
  },
}
SCSS
$custom: #336bc8;
$custom-light: #7f94d9;
$custom-dark: #000000;
JSON
{
  "hex": "#336bc8",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 200
  },
  "hsl": {
    "h": 217.45,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5403,
    "c": 0.15652,
    "h": 260
  },
  "luminance": 0.15389
}

Semantic roles & 50–950 ramp

primary
#336BC8
secondary
#CEB489
accent
#A745E3
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #336BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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