#336AC8#336AC8

#336AC8 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 53.8% C 0.158 H 260.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#336AC8
RGBrgb(51, 106, 200)
HSLhsl(218, 59%, 49%)
HSVhsv(218, 75%, 78%)
CMYKcmyk(74.5%, 47%, 0%, 21.6%)
CIE-LABlab(45.88, 14.66, -54.19)
CIE-LCHlch(45.88, 56.14, 285.14°)
OKLaboklab(53.82% -0.0263 -0.1555)
OKLCHoklch(53.82% 0.158 260.4)
XYZxyz(16.9408, 15.1801, 56.6696)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AC8 #C89133
analogous
#33B5C8 #336AC8 #4633C8
triadic
#336AC8 #C8336A #6AC833
tetradic
#336AC8 #C833B5 #C89133 #33C846
square
#336AC8 #C833B5 #C89133 #33C846
split-complementary
#336AC8 #C84633 #B5C833
monochromatic
#1A3666 #275097 #336AC8 #618DD7 #92B0E3

Accessibility & contrast

On white

5.20
#336AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#336AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AC8
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AC8#FFFFFF#000000##FFFFFF
##336AC81.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3774CC
Deuteranopia (green-blind)
#0E66C6
Tritanopia (blue-blind)
#00808F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336ac8;
/* rgb */ color: rgb(51, 106, 200);
/* oklch */ color: oklch(53.8% 0.158 260.4);
Tailwind
colors: {
  custom: {
    50: '#7f94d9',
    500: '#336ac8',
    950: '#000000',
  },
}
SCSS
$custom: #336ac8;
$custom-light: #7f94d9;
$custom-dark: #000000;
JSON
{
  "hex": "#336ac8",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 200
  },
  "hsl": {
    "h": 217.852,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53815,
    "c": 0.15771,
    "h": 260.4
  },
  "luminance": 0.15182
}

Semantic roles & 50–950 ramp

primary
#336AC8
secondary
#CEB489
accent
#A845E3
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #336AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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