#336BAB#336BAB

#336BAB is a mid, moderate cyan. Relative luminance 0.142; OKLCH L 52.2% C 0.117 H 253.5°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#336BAB
RGBrgb(51, 107, 171)
HSLhsl(212, 54%, 44%)
HSVhsv(212, 70%, 67%)
CMYKcmyk(70.2%, 37.4%, 0%, 32.9%)
CIE-LABlab(44.46, 3.28, -39.61)
CIE-LCHlch(44.46, 39.75, 274.73°)
OKLaboklab(52.16% -0.0333 -0.1127)
OKLCHoklch(52.16% 0.117 253.5)
XYZxyz(13.9709, 14.1580, 40.5167)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BAB #AB7333
analogous
#33A7AB #336BAB #3733AB
triadic
#336BAB #AB336B #6BAB33
tetradic
#336BAB #AB33A7 #AB7333 #33AB37
square
#336BAB #AB33A7 #AB7333 #33AB37
split-complementary
#336BAB #AB3733 #A7AB33
monochromatic
#17304D #254E7C #336BAB #508ACB #7FA9D9

Accessibility & contrast

On white

5.48
#336BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#336BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BAB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BAB#FFFFFF#000000##FFFFFF
##336BAB1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6FAE
Deuteranopia (green-blind)
#3C64AA
Tritanopia (blue-blind)
#007A83
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #336bab;
/* rgb */ color: rgb(51, 107, 171);
/* oklch */ color: oklch(52.2% 0.117 253.5);
Tailwind
colors: {
  custom: {
    50: '#7995c4',
    500: '#336bab',
    950: '#000000',
  },
}
SCSS
$custom: #336bab;
$custom-light: #7995c4;
$custom-dark: #000000;
JSON
{
  "hex": "#336bab",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 171
  },
  "hsl": {
    "h": 212,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5216,
    "c": 0.11748,
    "h": 253.5
  },
  "luminance": 0.14159
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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