#336EC1#336EC1

#336EC1 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.2% C 0.144 H 257.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#336EC1
RGBrgb(51, 110, 193)
HSLhsl(215, 58%, 48%)
HSVhsv(215, 74%, 76%)
CMYKcmyk(73.6%, 43%, 0%, 24.3%)
CIE-LABlab(46.58, 9.52, -49.03)
CIE-LCHlch(46.58, 49.94, 280.99°)
OKLaboklab(54.22% -0.0311 -0.1402)
OKLCHoklch(54.22% 0.144 257.5)
XYZxyz(16.5633, 15.7041, 52.6000)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336EC1 #C18633
analogous
#33B5C1 #336EC1 #3F33C1
triadic
#336EC1 #C1336E #6EC133
tetradic
#336EC1 #C133B5 #C18633 #33C13F
square
#336EC1 #C133B5 #C18633 #33C13F
split-complementary
#336EC1 #C13F33 #B5C133
monochromatic
#193760 #265291 #336EC1 #5D8FD4 #8DB0E1

Accessibility & contrast

On white

5.07
#336EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#336EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336EC1
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336EC1#FFFFFF#000000##FFFFFF
##336EC11.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4575C4
Deuteranopia (green-blind)
#2C68BF
Tritanopia (blue-blind)
#00818E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336ec1;
/* rgb */ color: rgb(51, 110, 193);
/* oklch */ color: oklch(54.2% 0.144 257.5);
Tailwind
colors: {
  custom: {
    50: '#7d97d4',
    500: '#336ec1',
    950: '#000000',
  },
}
SCSS
$custom: #336ec1;
$custom-light: #7d97d4;
$custom-dark: #000000;
JSON
{
  "hex": "#336ec1",
  "rgb": {
    "r": 51,
    "g": 110,
    "b": 193
  },
  "hsl": {
    "h": 215.07,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54219,
    "c": 0.14364,
    "h": 257.5
  },
  "luminance": 0.15706
}

Semantic roles & 50–950 ramp

primary
#336EC1
secondary
#CBAE84
accent
#A146E1
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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