#336DC4#336DC4

#336DC4 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.2% C 0.149 H 258.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#336DC4
RGBrgb(51, 109, 196)
HSLhsl(216, 59%, 48%)
HSVhsv(216, 74%, 77%)
CMYKcmyk(74%, 44.4%, 0%, 23.1%)
CIE-LABlab(46.48, 11.27, -50.92)
CIE-LCHlch(46.48, 52.16, 282.48°)
OKLaboklab(54.2% -0.0296 -0.1458)
OKLCHoklch(54.2% 0.149 258.5)
XYZxyz(16.7941, 15.6247, 54.3446)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DC4 #C48A33
analogous
#33B5C4 #336DC4 #4133C4
triadic
#336DC4 #C4336D #6DC433
tetradic
#336DC4 #C433B5 #C48A33 #33C441
square
#336DC4 #C433B5 #C48A33 #33C441
split-complementary
#336DC4 #C44133 #B5C433
monochromatic
#1A3763 #265293 #336DC4 #5F8ED5 #8FB0E2

Accessibility & contrast

On white

5.09
#336DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#336DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DC4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DC4#FFFFFF#000000##FFFFFF
##336DC41.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4175C7
Deuteranopia (green-blind)
#2468C2
Tritanopia (blue-blind)
#00818F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336dc4;
/* rgb */ color: rgb(51, 109, 196);
/* oklch */ color: oklch(54.2% 0.149 258.5);
Tailwind
colors: {
  custom: {
    50: '#7e96d6',
    500: '#336dc4',
    950: '#000000',
  },
}
SCSS
$custom: #336dc4;
$custom-light: #7e96d6;
$custom-dark: #000000;
JSON
{
  "hex": "#336dc4",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 196
  },
  "hsl": {
    "h": 216,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54196,
    "c": 0.14882,
    "h": 258.5
  },
  "luminance": 0.15627
}

Semantic roles & 50–950 ramp

primary
#336DC4
secondary
#CDB086
accent
#A446E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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