#336CB1#336CB1

#336CB1 is a mid, vivid cyan. Relative luminance 0.146; OKLCH L 52.8% C 0.124 H 254.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#336CB1
RGBrgb(51, 108, 177)
HSLhsl(213, 55%, 45%)
HSVhsv(213, 71%, 69%)
CMYKcmyk(71.2%, 39%, 0%, 30.6%)
CIE-LABlab(45.08, 4.86, -42.13)
CIE-LCHlch(45.08, 42.41, 276.57°)
OKLaboklab(52.76% -0.0327 -0.12)
OKLCHoklch(52.76% 0.124 254.7)
XYZxyz(14.6607, 14.6017, 43.6322)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CB1 #B17833
analogous
#33ABB1 #336CB1 #3933B1
triadic
#336CB1 #B1336C #6CB133
tetradic
#336CB1 #B133AB #B17833 #33B139
square
#336CB1 #B133AB #B17833 #33B139
split-complementary
#336CB1 #B13933 #ABB133
monochromatic
#183252 #254F81 #336CB1 #548BCE #83ABDB

Accessibility & contrast

On white

5.36
#336CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#336CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CB1
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CB1#FFFFFF#000000##FFFFFF
##336CB11.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C71B4
Deuteranopia (green-blind)
#3965B0
Tritanopia (blue-blind)
#007C86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336cb1;
/* rgb */ color: rgb(51, 108, 177);
/* oklch */ color: oklch(52.8% 0.124 254.7);
Tailwind
colors: {
  custom: {
    50: '#7a95c9',
    500: '#336cb1',
    950: '#000000',
  },
}
SCSS
$custom: #336cb1;
$custom-light: #7a95c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336cb1",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 177
  },
  "hsl": {
    "h": 212.857,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52756,
    "c": 0.12443,
    "h": 254.7
  },
  "luminance": 0.14603
}

Semantic roles & 50–950 ramp

primary
#336CB1
secondary
#C5A37B
accent
#9B49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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