#336A8B#336A8B

#336A8B is a mid, moderate cyan. Relative luminance 0.129; OKLCH L 50.2% C 0.078 H 237.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#336A8B
RGBrgb(51, 106, 139)
HSLhsl(203, 46%, 37%)
HSVhsv(203, 63%, 55%)
CMYKcmyk(63.3%, 23.7%, 0%, 45.5%)
CIE-LABlab(42.57, -7.51, -23.59)
CIE-LCHlch(42.57, 24.76, 252.35°)
OKLaboklab(50.16% -0.0421 -0.0661)
OKLCHoklch(50.16% 0.078 237.5)
XYZxyz(11.1777, 12.8749, 26.3171)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A8B #8B5433
analogous
#338B80 #336A8B #333E8B
triadic
#336A8B #8B336A #6A8B33
tetradic
#336A8B #80338B #8B5433 #3E8B33
square
#336A8B #80338B #8B5433 #3E8B33
split-complementary
#336A8B #8B333E #8B8033
monochromatic
#122631 #23485E #336A8B #438CB8 #6EA8CA

Accessibility & contrast

On white

5.87
#336A8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#336A8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A8B
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A8B#FFFFFF#000000##FFFFFF
##336A8B1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #336a8b;
/* rgb */ color: rgb(51, 106, 139);
/* oklch */ color: oklch(50.2% 0.078 237.5);
Tailwind
colors: {
  custom: {
    50: '#7494ad',
    500: '#336a8b',
    950: '#000000',
  },
}
SCSS
$custom: #336a8b;
$custom-light: #7494ad;
$custom-dark: #000000;
JSON
{
  "hex": "#336a8b",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 139
  },
  "hsl": {
    "h": 202.5,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.50159,
    "c": 0.07842,
    "h": 237.5
  },
  "luminance": 0.12876
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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