#336DC1#336DC1

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

Color values

HEX#336DC1
RGBrgb(51, 109, 193)
HSLhsl(215, 58%, 48%)
HSVhsv(215, 74%, 76%)
CMYKcmyk(73.6%, 43.5%, 0%, 24.3%)
CIE-LABlab(46.30, 10.15, -49.48)
CIE-LCHlch(46.30, 50.52, 281.59°)
OKLaboklab(54% -0.0302 -0.1416)
OKLCHoklch(54% 0.145 258)
XYZxyz(16.4560, 15.4895, 52.5642)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DC1 #C18733
analogous
#33B4C1 #336DC1 #4033C1
triadic
#336DC1 #C1336D #6DC133
tetradic
#336DC1 #C133B4 #C18733 #33C140
square
#336DC1 #C133B4 #C18733 #33C140
split-complementary
#336DC1 #C14033 #B4C133
monochromatic
#193660 #265291 #336DC1 #5D8ED4 #8DB0E1

Accessibility & contrast

On white

5.12
#336DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#336DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DC1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DC1#FFFFFF#000000##FFFFFF
##336DC11.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4375C4
Deuteranopia (green-blind)
#2968BF
Tritanopia (blue-blind)
#00818D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336dc1;
/* rgb */ color: rgb(51, 109, 193);
/* oklch */ color: oklch(54.0% 0.145 258.0);
Tailwind
colors: {
  custom: {
    50: '#7d96d4',
    500: '#336dc1',
    950: '#000000',
  },
}
SCSS
$custom: #336dc1;
$custom-light: #7d96d4;
$custom-dark: #000000;
JSON
{
  "hex": "#336dc1",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 193
  },
  "hsl": {
    "h": 215.493,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53998,
    "c": 0.14478,
    "h": 258
  },
  "luminance": 0.15491
}

Semantic roles & 50–950 ramp

primary
#336DC1
secondary
#CBAE84
accent
#A246E1
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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