#336CC4#336CC4

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

Color values

HEX#336CC4
RGBrgb(51, 108, 196)
HSLhsl(216, 59%, 48%)
HSVhsv(216, 74%, 77%)
CMYKcmyk(74%, 44.9%, 0%, 23.1%)
CIE-LABlab(46.19, 11.90, -51.38)
CIE-LCHlch(46.19, 52.74, 283.04°)
OKLaboklab(53.98% -0.0287 -0.1472)
OKLCHoklch(53.98% 0.15 259)
XYZxyz(16.6880, 15.4126, 54.3093)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CC4 #C48B33
analogous
#33B4C4 #336CC4 #4333C4
triadic
#336CC4 #C4336C #6CC433
tetradic
#336CC4 #C433B4 #C48B33 #33C443
square
#336CC4 #C433B4 #C48B33 #33C443
split-complementary
#336CC4 #C44333 #B4C433
monochromatic
#1A3663 #265193 #336CC4 #5F8DD5 #8FB0E2

Accessibility & contrast

On white

5.14
#336CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336CC4
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CC4#FFFFFF#000000##FFFFFF
##336CC41.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F75C7
Deuteranopia (green-blind)
#2167C2
Tritanopia (blue-blind)
#00818E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336cc4;
/* rgb */ color: rgb(51, 108, 196);
/* oklch */ color: oklch(54.0% 0.150 259.0);
Tailwind
colors: {
  custom: {
    50: '#7e95d6',
    500: '#336cc4',
    950: '#000000',
  },
}
SCSS
$custom: #336cc4;
$custom-light: #7e95d6;
$custom-dark: #000000;
JSON
{
  "hex": "#336cc4",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 196
  },
  "hsl": {
    "h": 216.414,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53976,
    "c": 0.14998,
    "h": 259
  },
  "luminance": 0.15414
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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