#336DC5#336DC5

#336DC5 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.3% C 0.150 H 258.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#336DC5
RGBrgb(51, 109, 197)
HSLhsl(216, 59%, 49%)
HSVhsv(216, 74%, 77%)
CMYKcmyk(74.1%, 44.7%, 0%, 22.7%)
CIE-LABlab(46.54, 11.64, -51.40)
CIE-LCHlch(46.54, 52.70, 282.76°)
OKLaboklab(54.26% -0.0294 -0.1472)
OKLCHoklch(54.26% 0.15 258.7)
XYZxyz(16.9083, 15.6704, 54.9461)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DC5 #C58B33
analogous
#33B6C5 #336DC5 #4233C5
triadic
#336DC5 #C5336D #6DC533
tetradic
#336DC5 #C533B6 #C58B33 #33C542
square
#336DC5 #C533B6 #C58B33 #33C542
split-complementary
#336DC5 #C54233 #B6C533
monochromatic
#1A3764 #265294 #336DC5 #5F8ED6 #90B1E2

Accessibility & contrast

On white

5.08
#336DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#336DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DC5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DC5#FFFFFF#000000##FFFFFF
##336DC51.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4075C8
Deuteranopia (green-blind)
#2368C3
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336dc5;
/* rgb */ color: rgb(51, 109, 197);
/* oklch */ color: oklch(54.3% 0.150 258.7);
Tailwind
colors: {
  custom: {
    50: '#7e96d7',
    500: '#336dc5',
    950: '#000000',
  },
}
SCSS
$custom: #336dc5;
$custom-light: #7e96d7;
$custom-dark: #000000;
JSON
{
  "hex": "#336dc5",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 197
  },
  "hsl": {
    "h": 216.164,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54262,
    "c": 0.15015,
    "h": 258.7
  },
  "luminance": 0.15672
}

Semantic roles & 50–950 ramp

primary
#336DC5
secondary
#CDB187
accent
#A446E2
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #336DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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