#336AD2#336AD2

#336AD2 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.5% C 0.171 H 261.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#336AD2
RGBrgb(51, 106, 210)
HSLhsl(219, 64%, 51%)
HSVhsv(219, 76%, 82%)
CMYKcmyk(75.7%, 49.5%, 0%, 17.6%)
CIE-LABlab(46.53, 18.39, -58.87)
CIE-LCHlch(46.53, 61.68, 287.35°)
OKLaboklab(54.52% -0.0249 -0.1693)
OKLCHoklch(54.52% 0.171 261.6)
XYZxyz(18.1479, 15.6630, 63.0271)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AD2 #D29B33
analogous
#33B9D2 #336AD2 #4B33D2
triadic
#336AD2 #D2336A #6AD233
tetradic
#336AD2 #D233B9 #D29B33 #33D24B
square
#336AD2 #D233B9 #D29B33 #33D24B
split-complementary
#336AD2 #D24B33 #B9D233
monochromatic
#193872 #2450A4 #336AD2 #658FDD #97B3E8

Accessibility & contrast

On white

5.08
#336AD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#336AD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AD2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AD2#FFFFFF#000000##FFFFFF
##336AD21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C76D6
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#008394
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336ad2;
/* rgb */ color: rgb(51, 106, 210);
/* oklch */ color: oklch(54.5% 0.171 261.6);
Tailwind
colors: {
  custom: {
    50: '#8194e0',
    500: '#336ad2',
    950: '#000000',
  },
}
SCSS
$custom: #336ad2;
$custom-light: #8194e0;
$custom-dark: #000000;
JSON
{
  "hex": "#336ad2",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 210
  },
  "hsl": {
    "h": 219.245,
    "s": 63.855,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5452,
    "c": 0.17109,
    "h": 261.6
  },
  "luminance": 0.15665
}

Semantic roles & 50–950 ramp

primary
#336AD2
secondary
#D4BB8D
accent
#AD41E7
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #336AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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