#336FDC#336FDC

#336FDC is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.3% C 0.178 H 261.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#336FDC
RGBrgb(51, 111, 220)
HSLhsl(219, 71%, 53%)
HSVhsv(219, 77%, 86%)
CMYKcmyk(76.8%, 49.5%, 0%, 13.7%)
CIE-LABlab(48.56, 18.95, -61.28)
CIE-LCHlch(48.56, 64.14, 287.18°)
OKLaboklab(56.28% -0.0274 -0.1763)
OKLCHoklch(56.28% 0.178 261.1)
XYZxyz(19.9633, 17.2377, 69.9713)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FDC #DCA033
analogous
#33C4DC #336FDC #4B33DC
triadic
#336FDC #DC336F #6FDC33
tetradic
#336FDC #DC33C4 #DCA033 #33DC4B
square
#336FDC #DC33C4 #DCA033 #33DC4B
split-complementary
#336FDC #DC4B33 #C4DC33
monochromatic
#163B7F #1F53B3 #336FDC #6794E5 #9BB9EE

Accessibility & contrast

On white

4.72
#336FDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#336FDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FDC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FDC#FFFFFF#000000##FFFFFF
##336FDC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D7BE0
Deuteranopia (green-blind)
#006CDA
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #336fdc;
/* rgb */ color: rgb(51, 111, 220);
/* oklch */ color: oklch(56.3% 0.178 261.1);
Tailwind
colors: {
  custom: {
    50: '#8397e8',
    500: '#336fdc',
    950: '#000000',
  },
}
SCSS
$custom: #336fdc;
$custom-light: #8397e8;
$custom-dark: #000000;
JSON
{
  "hex": "#336fdc",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 220
  },
  "hsl": {
    "h": 218.698,
    "s": 70.711,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56283,
    "c": 0.1784,
    "h": 261.1
  },
  "luminance": 0.1724
}

Semantic roles & 50–950 ramp

primary
#336FDC
secondary
#DAC091
accent
#AE3AED
background
#F8F9FE
surface
#F0F2FD
border
#CBCCD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #336FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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