#336AC7#336AC7

#336AC7 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 53.7% C 0.156 H 260.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#336AC7
RGBrgb(51, 106, 199)
HSLhsl(218, 59%, 49%)
HSVhsv(218, 74%, 78%)
CMYKcmyk(74.4%, 46.7%, 0%, 22%)
CIE-LABlab(45.82, 14.29, -53.71)
CIE-LCHlch(45.82, 55.58, 284.90°)
OKLaboklab(53.75% -0.0265 -0.1541)
OKLCHoklch(53.75% 0.156 260.2)
XYZxyz(16.8244, 15.1335, 56.0561)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AC7 #C79033
analogous
#33B4C7 #336AC7 #4633C7
triadic
#336AC7 #C7336A #6AC733
tetradic
#336AC7 #C733B4 #C79033 #33C746
square
#336AC7 #C733B4 #C79033 #33C746
split-complementary
#336AC7 #C74633 #B4C733
monochromatic
#1A3666 #275096 #336AC7 #618CD6 #91B0E3

Accessibility & contrast

On white

5.21
#336AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#336AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AC7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AC7#FFFFFF#000000##FFFFFF
##336AC71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3874CA
Deuteranopia (green-blind)
#1266C5
Tritanopia (blue-blind)
#00808F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336ac7;
/* rgb */ color: rgb(51, 106, 199);
/* oklch */ color: oklch(53.7% 0.156 260.2);
Tailwind
colors: {
  custom: {
    50: '#7e94d8',
    500: '#336ac7',
    950: '#000000',
  },
}
SCSS
$custom: #336ac7;
$custom-light: #7e94d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336ac7",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 199
  },
  "hsl": {
    "h": 217.703,
    "s": 59.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53746,
    "c": 0.15636,
    "h": 260.2
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#336AC7
secondary
#CEB488
accent
#A845E2
background
#F8F9FD
surface
#F0F1FA
border
#CBCBD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #336AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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