#336A8A#336A8A

#336A8A is a mid, moderate cyan. Relative luminance 0.128; OKLCH L 50.1% C 0.077 H 236.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#336A8A
RGBrgb(51, 106, 138)
HSLhsl(202, 46%, 37%)
HSVhsv(202, 63%, 54%)
CMYKcmyk(63%, 23.2%, 0%, 45.9%)
CIE-LABlab(42.53, -7.85, -23.06)
CIE-LCHlch(42.53, 24.36, 251.20°)
OKLaboklab(50.11% -0.0425 -0.0646)
OKLCHoklch(50.11% 0.077 236.7)
XYZxyz(11.1050, 12.8458, 25.9341)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A8A #8A5333
analogous
#338A7F #336A8A #333F8A
triadic
#336A8A #8A336A #6A8A33
tetradic
#336A8A #7F338A #8A5333 #3F8A33
square
#336A8A #7F338A #8A5333 #3F8A33
split-complementary
#336A8A #8A333F #8A7F33
monochromatic
#122531 #22485D #336A8A #448CB7 #6EA8C9

Accessibility & contrast

On white

5.88
#336A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#336A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A8A
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A8A#FFFFFF#000000##FFFFFF
##336A8A1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B698C
Deuteranopia (green-blind)
#4F6089
Tritanopia (blue-blind)
#007275
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #336a8a;
/* rgb */ color: rgb(51, 106, 138);
/* oklch */ color: oklch(50.1% 0.077 236.7);
Tailwind
colors: {
  custom: {
    50: '#7394ac',
    500: '#336a8a',
    950: '#000000',
  },
}
SCSS
$custom: #336a8a;
$custom-light: #7394ac;
$custom-dark: #000000;
JSON
{
  "hex": "#336a8a",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 138
  },
  "hsl": {
    "h": 202.069,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.50109,
    "c": 0.07733,
    "h": 236.7
  },
  "luminance": 0.12847
}

Semantic roles & 50–950 ramp

primary
#336A8A
secondary
#B18367
accent
#8352D6
background
#F7F9FA
surface
#EDF1F4
border
#C8CBCE
text
#090D10
muted
#7B7E7F

Preview Lab

Preview with #336A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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