#336B8D#336B8D

#336B8D is a mid, moderate cyan. Relative luminance 0.131; OKLCH L 50.5% C 0.080 H 237.9°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#336B8D
RGBrgb(51, 107, 141)
HSLhsl(203, 47%, 38%)
HSVhsv(203, 64%, 55%)
CMYKcmyk(63.8%, 24.1%, 0%, 44.7%)
CIE-LABlab(42.98, -7.42, -24.17)
CIE-LCHlch(42.98, 25.28, 252.94°)
OKLaboklab(50.51% -0.0425 -0.0678)
OKLCHoklch(50.51% 0.08 237.9)
XYZxyz(11.4288, 13.1412, 27.1283)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336B8D #8D5533
analogous
#338D82 #336B8D #333E8D
triadic
#336B8D #8D336B #6B8D33
tetradic
#336B8D #82338D #8D5533 #3E8D33
square
#336B8D #82338D #8D5533 #3E8D33
split-complementary
#336B8D #8D333E #8D8233
monochromatic
#122733 #234960 #336B8D #438DBA #6FA8CB

Accessibility & contrast

On white

5.79
#336B8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#336B8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336B8D
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336B8D#FFFFFF#000000##FFFFFF
##336B8D1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6B8F
Deuteranopia (green-blind)
#4F618C
Tritanopia (blue-blind)
#007476
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #336b8d;
/* rgb */ color: rgb(51, 107, 141);
/* oklch */ color: oklch(50.5% 0.080 237.9);
Tailwind
colors: {
  custom: {
    50: '#7495ae',
    500: '#336b8d',
    950: '#000000',
  },
}
SCSS
$custom: #336b8d;
$custom-light: #7495ae;
$custom-dark: #000000;
JSON
{
  "hex": "#336b8d",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 141
  },
  "hsl": {
    "h": 202.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50506,
    "c": 0.08003,
    "h": 237.9
  },
  "luminance": 0.13142
}

Semantic roles & 50–950 ramp

primary
#336B8D
secondary
#B38569
accent
#8451D7
background
#F7F9FA
surface
#EDF1F4
border
#C8CBCE
text
#090D10
muted
#7B7E7F

Preview Lab

Preview with #336B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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