#336FC7#336FC7

#336FC7 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 54.8% C 0.151 H 258.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#336FC7
RGBrgb(51, 111, 199)
HSLhsl(216, 59%, 49%)
HSVhsv(216, 74%, 78%)
CMYKcmyk(74.4%, 44.2%, 0%, 22%)
CIE-LABlab(47.23, 11.12, -51.45)
CIE-LCHlch(47.23, 52.64, 282.20°)
OKLaboklab(54.83% -0.0308 -0.1473)
OKLCHoklch(54.83% 0.151 258.2)
XYZxyz(17.3547, 16.1943, 56.2329)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FC7 #C78B33
analogous
#33B9C7 #336FC7 #4133C7
triadic
#336FC7 #C7336F #6FC733
tetradic
#336FC7 #C733B9 #C78B33 #33C741
square
#336FC7 #C733B9 #C78B33 #33C741
split-complementary
#336FC7 #C74133 #B9C733
monochromatic
#1A3966 #275496 #336FC7 #6190D6 #91B2E3

Accessibility & contrast

On white

4.95
#336FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#336FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FC7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FC7#FFFFFF#000000##FFFFFF
##336FC71.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4377CA
Deuteranopia (green-blind)
#256AC5
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #336fc7;
/* rgb */ color: rgb(51, 111, 199);
/* oklch */ color: oklch(54.8% 0.151 258.2);
Tailwind
colors: {
  custom: {
    50: '#7e97d8',
    500: '#336fc7',
    950: '#000000',
  },
}
SCSS
$custom: #336fc7;
$custom-light: #7e97d8;
$custom-dark: #000000;
JSON
{
  "hex": "#336fc7",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 199
  },
  "hsl": {
    "h": 215.676,
    "s": 59.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54834,
    "c": 0.15052,
    "h": 258.2
  },
  "luminance": 0.16196
}

Semantic roles & 50–950 ramp

primary
#336FC7
secondary
#CEB188
accent
#A345E2
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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