#336CD2#336CD2

#336CD2 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 54.9% C 0.169 H 261.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#336CD2
RGBrgb(51, 108, 210)
HSLhsl(218, 64%, 51%)
HSVhsv(218, 76%, 82%)
CMYKcmyk(75.7%, 48.6%, 0%, 17.6%)
CIE-LABlab(47.08, 17.12, -57.98)
CIE-LCHlch(47.08, 60.46, 286.45°)
OKLaboklab(54.94% -0.0265 -0.1666)
OKLCHoklch(54.94% 0.169 261)
XYZxyz(18.3565, 16.0800, 63.0966)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CD2 #D29933
analogous
#33BBD2 #336CD2 #4933D2
triadic
#336CD2 #D2336C #6CD233
tetradic
#336CD2 #D233BB #D29933 #33D249
square
#336CD2 #D233BB #D29933 #33D249
split-complementary
#336CD2 #D24933 #BBD233
monochromatic
#193972 #2452A4 #336CD2 #6590DD #97B4E8

Accessibility & contrast

On white

4.98
#336CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#336CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CD2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CD2#FFFFFF#000000##FFFFFF
##336CD21.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3177D6
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#008495
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #336cd2;
/* rgb */ color: rgb(51, 108, 210);
/* oklch */ color: oklch(54.9% 0.169 261.0);
Tailwind
colors: {
  custom: {
    50: '#8195e0',
    500: '#336cd2',
    950: '#000000',
  },
}
SCSS
$custom: #336cd2;
$custom-light: #8195e0;
$custom-dark: #000000;
JSON
{
  "hex": "#336cd2",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 210
  },
  "hsl": {
    "h": 218.491,
    "s": 63.855,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54941,
    "c": 0.16872,
    "h": 261
  },
  "luminance": 0.16082
}

Semantic roles & 50–950 ramp

primary
#336CD2
secondary
#D4BA8D
accent
#AB41E7
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #336CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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