#336AC4#336AC4

#336AC4 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 53.5% C 0.152 H 259.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#336AC4
RGBrgb(51, 106, 196)
HSLhsl(217, 59%, 48%)
HSVhsv(217, 74%, 77%)
CMYKcmyk(74%, 45.9%, 0%, 23.1%)
CIE-LABlab(45.63, 13.17, -52.29)
CIE-LCHlch(45.63, 53.92, 284.14°)
OKLaboklab(53.54% -0.027 -0.1499)
OKLCHoklch(53.54% 0.152 259.8)
XYZxyz(16.4795, 14.9956, 54.2398)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AC4 #C48D33
analogous
#33B2C4 #336AC4 #4433C4
triadic
#336AC4 #C4336A #6AC433
tetradic
#336AC4 #C433B2 #C48D33 #33C444
square
#336AC4 #C433B2 #C48D33 #33C444
split-complementary
#336AC4 #C44433 #B2C433
monochromatic
#1A3563 #265093 #336AC4 #5F8CD5 #8FAFE2

Accessibility & contrast

On white

5.25
#336AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#336AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AC4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AC4#FFFFFF#000000##FFFFFF
##336AC41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B73C7
Deuteranopia (green-blind)
#1A66C2
Tritanopia (blue-blind)
#007F8D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336ac4;
/* rgb */ color: rgb(51, 106, 196);
/* oklch */ color: oklch(53.5% 0.152 259.8);
Tailwind
colors: {
  custom: {
    50: '#7e94d6',
    500: '#336ac4',
    950: '#000000',
  },
}
SCSS
$custom: #336ac4;
$custom-light: #7e94d6;
$custom-dark: #000000;
JSON
{
  "hex": "#336ac4",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 196
  },
  "hsl": {
    "h": 217.241,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5354,
    "c": 0.15231,
    "h": 259.8
  },
  "luminance": 0.14997
}

Semantic roles & 50–950 ramp

primary
#336AC4
secondary
#CDB286
accent
#A746E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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