#336CAB#336CAB

#336CAB is a mid, moderate cyan. Relative luminance 0.144; OKLCH L 52.4% C 0.116 H 252.9°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#336CAB
RGBrgb(51, 108, 171)
HSLhsl(212, 54%, 44%)
HSVhsv(212, 70%, 67%)
CMYKcmyk(70.2%, 36.8%, 0%, 32.9%)
CIE-LABlab(44.76, 2.66, -39.14)
CIE-LCHlch(44.76, 39.23, 273.88°)
OKLaboklab(52.39% -0.0343 -0.1113)
OKLCHoklch(52.39% 0.116 252.9)
XYZxyz(14.0758, 14.3677, 40.5516)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CAB #AB7233
analogous
#33A8AB #336CAB #3633AB
triadic
#336CAB #AB336C #6CAB33
tetradic
#336CAB #AB33A8 #AB7233 #33AB36
square
#336CAB #AB33A8 #AB7233 #33AB36
split-complementary
#336CAB #AB3633 #A8AB33
monochromatic
#17304D #254E7C #336CAB #508BCB #7FAAD9

Accessibility & contrast

On white

5.42
#336CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#336CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CAB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CAB#FFFFFF#000000##FFFFFF
##336CAB1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5070AE
Deuteranopia (green-blind)
#3E65AA
Tritanopia (blue-blind)
#007B83
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336cab;
/* rgb */ color: rgb(51, 108, 171);
/* oklch */ color: oklch(52.4% 0.116 252.9);
Tailwind
colors: {
  custom: {
    50: '#7995c4',
    500: '#336cab',
    950: '#000000',
  },
}
SCSS
$custom: #336cab;
$custom-light: #7995c4;
$custom-dark: #000000;
JSON
{
  "hex": "#336cab",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 171
  },
  "hsl": {
    "h": 211.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52393,
    "c": 0.11643,
    "h": 252.9
  },
  "luminance": 0.14369
}

Semantic roles & 50–950 ramp

primary
#336CAB
secondary
#C29F78
accent
#984ADD
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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