#336AAB#336AAB

#336AAB is a mid, moderate cyan. Relative luminance 0.140; OKLCH L 51.9% C 0.119 H 254.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#336AAB
RGBrgb(51, 106, 171)
HSLhsl(213, 54%, 44%)
HSVhsv(213, 70%, 67%)
CMYKcmyk(70.2%, 38%, 0%, 32.9%)
CIE-LABlab(44.16, 3.90, -40.09)
CIE-LCHlch(44.16, 40.27, 275.56°)
OKLaboklab(51.93% -0.0323 -0.1141)
OKLCHoklch(51.93% 0.119 254.2)
XYZxyz(13.8673, 13.9507, 40.4821)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AAB #AB7433
analogous
#33A6AB #336AAB #3833AB
triadic
#336AAB #AB336A #6AAB33
tetradic
#336AAB #AB33A6 #AB7433 #33AB38
square
#336AAB #AB33A6 #AB7433 #33AB38
split-complementary
#336AAB #AB3833 #A6AB33
monochromatic
#17304D #254D7C #336AAB #5088CB #7FA8D9

Accessibility & contrast

On white

5.54
#336AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#336AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AAB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AAB#FFFFFF#000000##FFFFFF
##336AAB1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6FAE
Deuteranopia (green-blind)
#3B63AA
Tritanopia (blue-blind)
#007982
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #336aab;
/* rgb */ color: rgb(51, 106, 171);
/* oklch */ color: oklch(51.9% 0.119 254.2);
Tailwind
colors: {
  custom: {
    50: '#7994c4',
    500: '#336aab',
    950: '#000000',
  },
}
SCSS
$custom: #336aab;
$custom-light: #7994c4;
$custom-dark: #000000;
JSON
{
  "hex": "#336aab",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 171
  },
  "hsl": {
    "h": 212.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51929,
    "c": 0.11855,
    "h": 254.2
  },
  "luminance": 0.13952
}

Semantic roles & 50–950 ramp

primary
#336AAB
secondary
#C2A078
accent
#9A4ADD
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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