#336CD7#336CD7

#336CD7 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 55.3% C 0.175 H 261.5°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#336CD7
RGBrgb(51, 108, 215)
HSLhsl(219, 67%, 52%)
HSVhsv(219, 76%, 84%)
CMYKcmyk(76.3%, 49.8%, 0%, 15.7%)
CIE-LABlab(47.41, 18.99, -60.30)
CIE-LCHlch(47.41, 63.22, 287.48°)
OKLaboklab(55.3% -0.0258 -0.1734)
OKLCHoklch(55.3% 0.175 261.5)
XYZxyz(18.9891, 16.3331, 66.4286)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CD7 #D79E33
analogous
#33BED7 #336CD7 #4C33D7
triadic
#336CD7 #D7336C #6CD733
tetradic
#336CD7 #D733BE #D79E33 #33D74C
square
#336CD7 #D733BE #D79E33 #33D74C
split-complementary
#336CD7 #D74C33 #BED733
monochromatic
#183978 #2251AB #336CD7 #6691E1 #99B6EB

Accessibility & contrast

On white

4.92
#336CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#336CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CD7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CD7#FFFFFF#000000##FFFFFF
##336CD71.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B78DB
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#008697
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #336cd7;
/* rgb */ color: rgb(51, 108, 215);
/* oklch */ color: oklch(55.3% 0.175 261.5);
Tailwind
colors: {
  custom: {
    50: '#8295e4',
    500: '#336cd7',
    950: '#000000',
  },
}
SCSS
$custom: #336cd7;
$custom-light: #8295e4;
$custom-dark: #000000;
JSON
{
  "hex": "#336cd7",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 215
  },
  "hsl": {
    "h": 219.146,
    "s": 67.213,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55298,
    "c": 0.17536,
    "h": 261.5
  },
  "luminance": 0.16335
}

Semantic roles & 50–950 ramp

primary
#336CD7
secondary
#D7BE8F
accent
#AE3EEA
background
#F8F9FE
surface
#F0F1FC
border
#CBCBD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #336CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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