#336AC6#336AC6

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

Color values

HEX#336AC6
RGBrgb(51, 106, 198)
HSLhsl(218, 59%, 49%)
HSVhsv(218, 74%, 78%)
CMYKcmyk(74.2%, 46.5%, 0%, 22.4%)
CIE-LABlab(45.75, 13.92, -53.24)
CIE-LCHlch(45.75, 55.03, 284.65°)
OKLaboklab(53.68% -0.0267 -0.1527)
OKLCHoklch(53.68% 0.155 260.1)
XYZxyz(16.7086, 15.0872, 55.4467)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AC6 #C68F33
analogous
#33B4C6 #336AC6 #4633C6
triadic
#336AC6 #C6336A #6AC633
tetradic
#336AC6 #C633B4 #C68F33 #33C646
square
#336AC6 #C633B4 #C68F33 #33C646
split-complementary
#336AC6 #C64633 #B4C633
monochromatic
#1A3665 #265095 #336AC6 #608CD6 #91AFE3

Accessibility & contrast

On white

5.23
#336AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#336AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AC6
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AC6#FFFFFF#000000##FFFFFF
##336AC61.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3974C9
Deuteranopia (green-blind)
#1566C4
Tritanopia (blue-blind)
#00808E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336ac6;
/* rgb */ color: rgb(51, 106, 198);
/* oklch */ color: oklch(53.7% 0.155 260.1);
Tailwind
colors: {
  custom: {
    50: '#7e94d8',
    500: '#336ac6',
    950: '#000000',
  },
}
SCSS
$custom: #336ac6;
$custom-light: #7e94d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336ac6",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 198
  },
  "hsl": {
    "h": 217.551,
    "s": 59.036,
    "l": 48.824
  },
  "oklch": {
    "l": 0.53677,
    "c": 0.15501,
    "h": 260.1
  },
  "luminance": 0.15089
}

Semantic roles & 50–950 ramp

primary
#336AC6
secondary
#CDB387
accent
#A846E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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