#336DB1#336DB1

#336DB1 is a mid, vivid cyan. Relative luminance 0.148; OKLCH L 53.0% C 0.123 H 254.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#336DB1
RGBrgb(51, 109, 177)
HSLhsl(212, 55%, 45%)
HSVhsv(212, 71%, 69%)
CMYKcmyk(71.2%, 38.4%, 0%, 30.6%)
CIE-LABlab(45.38, 4.23, -41.67)
CIE-LCHlch(45.38, 41.88, 275.80°)
OKLaboklab(52.99% -0.0337 -0.1186)
OKLCHoklch(52.99% 0.123 254.1)
XYZxyz(14.7668, 14.8138, 43.6676)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DB1 #B17733
analogous
#33ACB1 #336DB1 #3833B1
triadic
#336DB1 #B1336D #6DB133
tetradic
#336DB1 #B133AC #B17733 #33B138
square
#336DB1 #B133AC #B17733 #33B138
split-complementary
#336DB1 #B13833 #ACB133
monochromatic
#183252 #255081 #336DB1 #548CCE #83ACDB

Accessibility & contrast

On white

5.30
#336DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#336DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DB1
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DB1#FFFFFF#000000##FFFFFF
##336DB11.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E72B4
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#007D86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336db1;
/* rgb */ color: rgb(51, 109, 177);
/* oklch */ color: oklch(53.0% 0.123 254.1);
Tailwind
colors: {
  custom: {
    50: '#7a96c9',
    500: '#336db1',
    950: '#000000',
  },
}
SCSS
$custom: #336db1;
$custom-light: #7a96c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336db1",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 177
  },
  "hsl": {
    "h": 212.381,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52985,
    "c": 0.12335,
    "h": 254.1
  },
  "luminance": 0.14815
}

Semantic roles & 50–950 ramp

primary
#336DB1
secondary
#C5A37B
accent
#9A49DF
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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