#336AAC#336AAC

#336AAC is a mid, moderate cyan. Relative luminance 0.140; OKLCH L 52.0% C 0.120 H 254.5°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#336AAC
RGBrgb(51, 106, 172)
HSLhsl(213, 54%, 44%)
HSVhsv(213, 70%, 67%)
CMYKcmyk(70.3%, 38.4%, 0%, 32.5%)
CIE-LABlab(44.22, 4.27, -40.58)
CIE-LCHlch(44.22, 40.81, 276.00°)
OKLaboklab(51.99% -0.032 -0.1155)
OKLCHoklch(51.99% 0.12 254.5)
XYZxyz(13.9629, 13.9890, 40.9860)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AAC #AC7533
analogous
#33A6AC #336AAC #3833AC
triadic
#336AAC #AC336A #6AAC33
tetradic
#336AAC #AC33A6 #AC7533 #33AC38
square
#336AAC #AC33A6 #AC7533 #33AC38
split-complementary
#336AAC #AC3833 #A6AC33
monochromatic
#17304E #254D7D #336AAC #5189CB #80A9D9

Accessibility & contrast

On white

5.53
#336AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#336AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AAC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AAC#FFFFFF#000000##FFFFFF
##336AAC1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6FAF
Deuteranopia (green-blind)
#3A63AB
Tritanopia (blue-blind)
#007983
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #336aac;
/* rgb */ color: rgb(51, 106, 172);
/* oklch */ color: oklch(52.0% 0.120 254.5);
Tailwind
colors: {
  custom: {
    50: '#7994c5',
    500: '#336aac',
    950: '#000000',
  },
}
SCSS
$custom: #336aac;
$custom-light: #7994c5;
$custom-dark: #000000;
JSON
{
  "hex": "#336aac",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 172
  },
  "hsl": {
    "h": 212.727,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5199,
    "c": 0.11989,
    "h": 254.5
  },
  "luminance": 0.1399
}

Semantic roles & 50–950 ramp

primary
#336AAC
secondary
#C2A178
accent
#9B4ADE
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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