#336F87#336F87

#336F87 is a mid, moderate cyan. Relative luminance 0.138; OKLCH L 51.2% C 0.073 H 227.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#336F87
RGBrgb(51, 111, 135)
HSLhsl(197, 45%, 36%)
HSVhsv(197, 62%, 53%)
CMYKcmyk(62.2%, 17.8%, 0%, 47.1%)
CIE-LABlab(43.97, -11.78, -19.04)
CIE-LCHlch(43.97, 22.39, 238.25°)
OKLaboklab(51.22% -0.0494 -0.0531)
OKLCHoklch(51.22% 0.073 227)
XYZxyz(11.4211, 13.8208, 24.9828)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336F87 #874B33
analogous
#338775 #336F87 #334587
triadic
#336F87 #87336F #6F8733
tetradic
#336F87 #753387 #874B33 #458733
square
#336F87 #753387 #874B33 #458733
split-complementary
#336F87 #873345 #877533
monochromatic
#11262E #224A5B #336F87 #4494B3 #6DAEC8

Accessibility & contrast

On white

5.58
#336F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#336F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336F87
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336F87#FFFFFF#000000##FFFFFF
##336F871.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#626D88
Deuteranopia (green-blind)
#566487
Tritanopia (blue-blind)
#007677
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #336f87;
/* rgb */ color: rgb(51, 111, 135);
/* oklch */ color: oklch(51.2% 0.073 227.0);
Tailwind
colors: {
  custom: {
    50: '#7398aa',
    500: '#336f87',
    950: '#000000',
  },
}
SCSS
$custom: #336f87;
$custom-light: #7398aa;
$custom-dark: #000000;
JSON
{
  "hex": "#336f87",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 135
  },
  "hsl": {
    "h": 197.143,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.51217,
    "c": 0.07254,
    "h": 227
  },
  "luminance": 0.13822
}

Semantic roles & 50–950 ramp

primary
#336F87
secondary
#B07B66
accent
#7853D5
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090D10
muted
#7B7E7F

Preview Lab

Preview with #336F87

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

Preview Lab → · Contrast checker → · Palette generator →

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