#336DB2#336DB2

#336DB2 is a mid, vivid cyan. Relative luminance 0.149; OKLCH L 53.0% C 0.125 H 254.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#336DB2
RGBrgb(51, 109, 178)
HSLhsl(213, 55%, 45%)
HSVhsv(213, 71%, 70%)
CMYKcmyk(71.3%, 38.8%, 0%, 30.2%)
CIE-LABlab(45.43, 4.60, -42.16)
CIE-LCHlch(45.43, 42.41, 276.23°)
OKLaboklab(53.05% -0.0335 -0.1201)
OKLCHoklch(53.05% 0.125 254.4)
XYZxyz(14.8668, 14.8538, 44.1944)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DB2 #B27833
analogous
#33ADB2 #336DB2 #3833B2
triadic
#336DB2 #B2336D #6DB233
tetradic
#336DB2 #B233AD #B27833 #33B238
square
#336DB2 #B233AD #B27833 #33B238
split-complementary
#336DB2 #B23833 #ADB233
monochromatic
#183353 #255082 #336DB2 #548CCE #84ACDC

Accessibility & contrast

On white

5.29
#336DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#336DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DB2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DB2#FFFFFF#000000##FFFFFF
##336DB21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D72B5
Deuteranopia (green-blind)
#3A66B1
Tritanopia (blue-blind)
#007D87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336db2;
/* rgb */ color: rgb(51, 109, 178);
/* oklch */ color: oklch(53.0% 0.125 254.4);
Tailwind
colors: {
  custom: {
    50: '#7a96c9',
    500: '#336db2',
    950: '#000000',
  },
}
SCSS
$custom: #336db2;
$custom-light: #7a96c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336db2",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 178
  },
  "hsl": {
    "h": 212.598,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.53046,
    "c": 0.12468,
    "h": 254.4
  },
  "luminance": 0.14855
}

Semantic roles & 50–950 ramp

primary
#336DB2
secondary
#C5A47C
accent
#9A49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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