#336DAB#336DAB

#336DAB is a mid, moderate cyan. Relative luminance 0.146; OKLCH L 52.6% C 0.115 H 252.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#336DAB
RGBrgb(51, 109, 171)
HSLhsl(211, 54%, 44%)
HSVhsv(211, 70%, 67%)
CMYKcmyk(70.2%, 36.3%, 0%, 32.9%)
CIE-LABlab(45.05, 2.04, -38.67)
CIE-LCHlch(45.05, 38.73, 273.01°)
OKLaboklab(52.63% -0.0353 -0.1099)
OKLCHoklch(52.63% 0.115 252.2)
XYZxyz(14.1818, 14.5799, 40.5870)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DAB #AB7133
analogous
#33A9AB #336DAB #3533AB
triadic
#336DAB #AB336D #6DAB33
tetradic
#336DAB #AB33A9 #AB7133 #33AB35
square
#336DAB #AB33A9 #AB7133 #33AB35
split-complementary
#336DAB #AB3533 #A9AB33
monochromatic
#17314D #254F7C #336DAB #508CCB #7FABD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336DAB#FFFFFF#000000##FFFFFF
##336DAB1.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)
#5171AE
Deuteranopia (green-blind)
#4065AA
Tritanopia (blue-blind)
#007C84
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336dab;
/* rgb */ color: rgb(51, 109, 171);
/* oklch */ color: oklch(52.6% 0.115 252.2);
Tailwind
colors: {
  custom: {
    50: '#7996c4',
    500: '#336dab',
    950: '#000000',
  },
}
SCSS
$custom: #336dab;
$custom-light: #7996c4;
$custom-dark: #000000;
JSON
{
  "hex": "#336dab",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 171
  },
  "hsl": {
    "h": 211,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52625,
    "c": 0.11541,
    "h": 252.2
  },
  "luminance": 0.14581
}

Semantic roles & 50–950 ramp

primary
#336DAB
secondary
#C29E78
accent
#964ADD
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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