#336CC5#336CC5

#336CC5 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.0% C 0.151 H 259.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#336CC5
RGBrgb(51, 108, 197)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 74%, 77%)
CMYKcmyk(74.1%, 45.2%, 0%, 22.7%)
CIE-LABlab(46.26, 12.27, -51.86)
CIE-LCHlch(46.26, 53.29, 283.31°)
OKLaboklab(54.04% -0.0286 -0.1486)
OKLCHoklch(54.04% 0.151 259.1)
XYZxyz(16.8022, 15.4583, 54.9107)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CC5 #C58C33
analogous
#33B5C5 #336CC5 #4333C5
triadic
#336CC5 #C5336C #6CC533
tetradic
#336CC5 #C533B5 #C58C33 #33C543
square
#336CC5 #C533B5 #C58C33 #33C543
split-complementary
#336CC5 #C54333 #B5C533
monochromatic
#1A3764 #265194 #336CC5 #5F8ED6 #90B0E2

Accessibility & contrast

On white

5.13
#336CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#336CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CC5
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CC5#FFFFFF#000000##FFFFFF
##336CC51.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E75C8
Deuteranopia (green-blind)
#1F67C3
Tritanopia (blue-blind)
#00818F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336cc5;
/* rgb */ color: rgb(51, 108, 197);
/* oklch */ color: oklch(54.0% 0.151 259.1);
Tailwind
colors: {
  custom: {
    50: '#7e95d7',
    500: '#336cc5',
    950: '#000000',
  },
}
SCSS
$custom: #336cc5;
$custom-light: #7e95d7;
$custom-dark: #000000;
JSON
{
  "hex": "#336cc5",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 197
  },
  "hsl": {
    "h": 216.575,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54044,
    "c": 0.15132,
    "h": 259.1
  },
  "luminance": 0.1546
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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