#336EC4#336EC4

#336EC4 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.4% C 0.148 H 258.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#336EC4
RGBrgb(51, 110, 196)
HSLhsl(216, 59%, 48%)
HSVhsv(216, 74%, 77%)
CMYKcmyk(74%, 43.9%, 0%, 23.1%)
CIE-LABlab(46.76, 10.64, -50.47)
CIE-LCHlch(46.76, 51.58, 281.90°)
OKLaboklab(54.42% -0.0305 -0.1445)
OKLCHoklch(54.42% 0.148 258.1)
XYZxyz(16.9013, 15.8393, 54.3804)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336EC4 #C48933
analogous
#33B6C4 #336EC4 #4033C4
triadic
#336EC4 #C4336E #6EC433
tetradic
#336EC4 #C433B6 #C48933 #33C440
square
#336EC4 #C433B6 #C48933 #33C440
split-complementary
#336EC4 #C44033 #B6C433
monochromatic
#1A3763 #265393 #336EC4 #5F8FD5 #8FB1E2

Accessibility & contrast

On white

5.04
#336EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#336EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336EC4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336EC4#FFFFFF#000000##FFFFFF
##336EC41.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4376C7
Deuteranopia (green-blind)
#2769C2
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #336ec4;
/* rgb */ color: rgb(51, 110, 196);
/* oklch */ color: oklch(54.4% 0.148 258.1);
Tailwind
colors: {
  custom: {
    50: '#7e97d6',
    500: '#336ec4',
    950: '#000000',
  },
}
SCSS
$custom: #336ec4;
$custom-light: #7e97d6;
$custom-dark: #000000;
JSON
{
  "hex": "#336ec4",
  "rgb": {
    "r": 51,
    "g": 110,
    "b": 196
  },
  "hsl": {
    "h": 215.586,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54416,
    "c": 0.14766,
    "h": 258.1
  },
  "luminance": 0.15841
}

Semantic roles & 50–950 ramp

primary
#336EC4
secondary
#CDB086
accent
#A246E2
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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