#336AC2#336AC2

#336AC2 is a mid, vivid blue. Relative luminance 0.149; OKLCH L 53.4% C 0.150 H 259.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#336AC2
RGBrgb(51, 106, 194)
HSLhsl(217, 58%, 48%)
HSVhsv(217, 74%, 76%)
CMYKcmyk(73.7%, 45.4%, 0%, 23.9%)
CIE-LABlab(45.50, 12.42, -51.33)
CIE-LCHlch(45.50, 52.82, 283.60°)
OKLaboklab(53.4% -0.0274 -0.1471)
OKLCHoklch(53.4% 0.15 259.5)
XYZxyz(16.2533, 14.9051, 53.0489)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AC2 #C28B33
analogous
#33B1C2 #336AC2 #4333C2
triadic
#336AC2 #C2336A #6AC233
tetradic
#336AC2 #C233B1 #C28B33 #33C243
square
#336AC2 #C233B1 #C28B33 #33C243
split-complementary
#336AC2 #C24333 #B1C233
monochromatic
#1A3561 #265092 #336AC2 #5E8BD5 #8EAEE1

Accessibility & contrast

On white

5.27
#336AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#336AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AC2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AC2#FFFFFF#000000##FFFFFF
##336AC21.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D73C5
Deuteranopia (green-blind)
#1E66C0
Tritanopia (blue-blind)
#007F8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336ac2;
/* rgb */ color: rgb(51, 106, 194);
/* oklch */ color: oklch(53.4% 0.150 259.5);
Tailwind
colors: {
  custom: {
    50: '#7d94d5',
    500: '#336ac2',
    950: '#000000',
  },
}
SCSS
$custom: #336ac2;
$custom-light: #7d94d5;
$custom-dark: #000000;
JSON
{
  "hex": "#336ac2",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 194
  },
  "hsl": {
    "h": 216.923,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53404,
    "c": 0.14961,
    "h": 259.5
  },
  "luminance": 0.14907
}

Semantic roles & 50–950 ramp

primary
#336AC2
secondary
#CCB185
accent
#A646E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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