#336FC5#336FC5

#336FC5 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 54.7% C 0.148 H 257.8°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#336FC5
RGBrgb(51, 111, 197)
HSLhsl(215, 59%, 49%)
HSVhsv(215, 74%, 77%)
CMYKcmyk(74.1%, 43.7%, 0%, 22.7%)
CIE-LABlab(47.11, 10.38, -50.49)
CIE-LCHlch(47.11, 51.55, 281.62°)
OKLaboklab(54.7% -0.0312 -0.1445)
OKLCHoklch(54.7% 0.148 257.8)
XYZxyz(17.1240, 16.1020, 55.0180)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FC5 #C58933
analogous
#33B8C5 #336FC5 #4033C5
triadic
#336FC5 #C5336F #6FC533
tetradic
#336FC5 #C533B8 #C58933 #33C540
square
#336FC5 #C533B8 #C58933 #33C540
split-complementary
#336FC5 #C54033 #B8C533
monochromatic
#1A3864 #265494 #336FC5 #5F90D6 #90B2E2

Accessibility & contrast

On white

4.98
#336FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#336FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FC5
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FC5#FFFFFF#000000##FFFFFF
##336FC51.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4477C8
Deuteranopia (green-blind)
#2869C3
Tritanopia (blue-blind)
#008390
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #336fc5;
/* rgb */ color: rgb(51, 111, 197);
/* oklch */ color: oklch(54.7% 0.148 257.8);
Tailwind
colors: {
  custom: {
    50: '#7e97d7',
    500: '#336fc5',
    950: '#000000',
  },
}
SCSS
$custom: #336fc5;
$custom-light: #7e97d7;
$custom-dark: #000000;
JSON
{
  "hex": "#336fc5",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 197
  },
  "hsl": {
    "h": 215.342,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54702,
    "c": 0.14785,
    "h": 257.8
  },
  "luminance": 0.16104
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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