#336FC4#336FC4

#336FC4 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 54.6% C 0.147 H 257.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#336FC4
RGBrgb(51, 111, 196)
HSLhsl(215, 59%, 48%)
HSVhsv(215, 74%, 77%)
CMYKcmyk(74%, 43.4%, 0%, 23.1%)
CIE-LABlab(47.05, 10.01, -50.01)
CIE-LCHlch(47.05, 51.00, 281.32°)
OKLaboklab(54.64% -0.0314 -0.1431)
OKLCHoklch(54.64% 0.147 257.6)
XYZxyz(17.0098, 16.0563, 54.4166)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FC4 #C48833
analogous
#33B7C4 #336FC4 #3F33C4
triadic
#336FC4 #C4336F #6FC433
tetradic
#336FC4 #C433B7 #C48833 #33C43F
square
#336FC4 #C433B7 #C48833 #33C43F
split-complementary
#336FC4 #C43F33 #B7C433
monochromatic
#1A3863 #265393 #336FC4 #5F90D5 #8FB2E2

Accessibility & contrast

On white

4.99
#336FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#336FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FC4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FC4#FFFFFF#000000##FFFFFF
##336FC41.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4577C7
Deuteranopia (green-blind)
#2A69C2
Tritanopia (blue-blind)
#008390
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #336fc4;
/* rgb */ color: rgb(51, 111, 196);
/* oklch */ color: oklch(54.6% 0.147 257.6);
Tailwind
colors: {
  custom: {
    50: '#7e97d6',
    500: '#336fc4',
    950: '#000000',
  },
}
SCSS
$custom: #336fc4;
$custom-light: #7e97d6;
$custom-dark: #000000;
JSON
{
  "hex": "#336fc4",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 196
  },
  "hsl": {
    "h": 215.172,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54637,
    "c": 0.14652,
    "h": 257.6
  },
  "luminance": 0.16058
}

Semantic roles & 50–950 ramp

primary
#336FC4
secondary
#CDAF86
accent
#A146E2
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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