#336A8E#336A8E

#336A8E is a mid, moderate cyan. Relative luminance 0.130; OKLCH L 50.3% C 0.082 H 239.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#336A8E
RGBrgb(51, 106, 142)
HSLhsl(204, 47%, 38%)
HSVhsv(204, 64%, 56%)
CMYKcmyk(64.1%, 25.4%, 0%, 44.3%)
CIE-LABlab(42.71, -6.47, -25.18)
CIE-LCHlch(42.71, 26.00, 255.58°)
OKLaboklab(50.31% -0.0411 -0.0707)
OKLCHoklch(50.31% 0.082 239.9)
XYZxyz(11.3999, 12.9637, 27.4874)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A8E #8E5733
analogous
#338E84 #336A8E #333D8E
triadic
#336A8E #8E336A #6A8E33
tetradic
#336A8E #84338E #8E5733 #3D8E33
square
#336A8E #84338E #8E5733 #3D8E33
split-complementary
#336A8E #8E333D #8E8433
monochromatic
#132734 #234861 #336A8E #438CBB #70A7CC

Accessibility & contrast

On white

5.84
#336A8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#336A8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A8E
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A8E#FFFFFF#000000##FFFFFF
##336A8E1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A6A90
Deuteranopia (green-blind)
#4D618D
Tritanopia (blue-blind)
#007376
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #336a8e;
/* rgb */ color: rgb(51, 106, 142);
/* oklch */ color: oklch(50.3% 0.082 239.9);
Tailwind
colors: {
  custom: {
    50: '#7494af',
    500: '#336a8e',
    950: '#000000',
  },
}
SCSS
$custom: #336a8e;
$custom-light: #7494af;
$custom-dark: #000000;
JSON
{
  "hex": "#336a8e",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 142
  },
  "hsl": {
    "h": 203.736,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.5031,
    "c": 0.08176,
    "h": 239.9
  },
  "luminance": 0.12965
}

Semantic roles & 50–950 ramp

primary
#336A8E
secondary
#B48769
accent
#8651D7
background
#F7F9FA
surface
#EDF1F4
border
#C8CBCE
text
#090D10
muted
#7B7E7F

Preview Lab

Preview with #336A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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