#336BC1#336BC1

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

Color values

HEX#336BC1
RGBrgb(51, 107, 193)
HSLhsl(216, 58%, 48%)
HSVhsv(216, 74%, 76%)
CMYKcmyk(73.6%, 44.6%, 0%, 24.3%)
CIE-LABlab(45.73, 11.42, -50.40)
CIE-LCHlch(45.73, 51.68, 282.76°)
OKLaboklab(53.56% -0.0284 -0.1443)
OKLCHoklch(53.56% 0.147 258.9)
XYZxyz(16.2451, 15.0677, 52.4939)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BC1 #C18933
analogous
#33B2C1 #336BC1 #4233C1
triadic
#336BC1 #C1336B #6BC133
tetradic
#336BC1 #C133B2 #C18933 #33C142
square
#336BC1 #C133B2 #C18933 #33C142
split-complementary
#336BC1 #C14233 #B2C133
monochromatic
#193560 #265091 #336BC1 #5D8CD4 #8DAEE1

Accessibility & contrast

On white

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

On black

4.01
#336BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##336BC1#FFFFFF#000000##FFFFFF
##336BC11.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4073C4
Deuteranopia (green-blind)
#2366BF
Tritanopia (blue-blind)
#007F8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336bc1;
/* rgb */ color: rgb(51, 107, 193);
/* oklch */ color: oklch(53.6% 0.147 258.9);
Tailwind
colors: {
  custom: {
    50: '#7d94d4',
    500: '#336bc1',
    950: '#000000',
  },
}
SCSS
$custom: #336bc1;
$custom-light: #7d94d4;
$custom-dark: #000000;
JSON
{
  "hex": "#336bc1",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 193
  },
  "hsl": {
    "h": 216.338,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53556,
    "c": 0.1471,
    "h": 258.9
  },
  "luminance": 0.15069
}

Semantic roles & 50–950 ramp

primary
#336BC1
secondary
#CBAF84
accent
#A446E1
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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