#336BC5#336BC5

#336BC5 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 53.8% C 0.152 H 259.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#336BC5
RGBrgb(51, 107, 197)
HSLhsl(217, 59%, 49%)
HSVhsv(217, 74%, 77%)
CMYKcmyk(74.1%, 45.7%, 0%, 22.7%)
CIE-LABlab(45.97, 12.91, -52.31)
CIE-LCHlch(45.97, 53.88, 283.86°)
OKLaboklab(53.83% -0.0277 -0.1499)
OKLCHoklch(53.83% 0.152 259.5)
XYZxyz(16.6973, 15.2486, 54.8758)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BC5 #C58D33
analogous
#33B4C5 #336BC5 #4433C5
triadic
#336BC5 #C5336B #6BC533
tetradic
#336BC5 #C533B4 #C58D33 #33C544
square
#336BC5 #C533B4 #C58D33 #33C544
split-complementary
#336BC5 #C54433 #B4C533
monochromatic
#1A3664 #265194 #336BC5 #5F8DD6 #90B0E2

Accessibility & contrast

On white

5.19
#336BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#336BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BC5
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BC5#FFFFFF#000000##FFFFFF
##336BC51.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C74C8
Deuteranopia (green-blind)
#1C67C3
Tritanopia (blue-blind)
#00808E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336bc5;
/* rgb */ color: rgb(51, 107, 197);
/* oklch */ color: oklch(53.8% 0.152 259.5);
Tailwind
colors: {
  custom: {
    50: '#7e94d7',
    500: '#336bc5',
    950: '#000000',
  },
}
SCSS
$custom: #336bc5;
$custom-light: #7e94d7;
$custom-dark: #000000;
JSON
{
  "hex": "#336bc5",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 197
  },
  "hsl": {
    "h": 216.986,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.53826,
    "c": 0.15249,
    "h": 259.5
  },
  "luminance": 0.1525
}

Semantic roles & 50–950 ramp

primary
#336BC5
secondary
#CDB287
accent
#A646E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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