#336987#336987

#336987 is a mid, moderate cyan. Relative luminance 0.126; OKLCH L 49.7% C 0.075 H 235.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#336987
RGBrgb(51, 105, 135)
HSLhsl(201, 45%, 36%)
HSVhsv(201, 62%, 53%)
CMYKcmyk(62.2%, 22.2%, 0%, 47.1%)
CIE-LABlab(42.09, -8.28, -21.95)
CIE-LCHlch(42.09, 23.46, 249.33°)
OKLaboklab(49.71% -0.0425 -0.0614)
OKLCHoklch(49.71% 0.075 235.3)
XYZxyz(10.7883, 12.5552, 24.7718)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336987 #875133
analogous
#33877B #336987 #333F87
triadic
#336987 #873369 #698733
tetradic
#336987 #7B3387 #875133 #3F8733
square
#336987 #7B3387 #875133 #3F8733
split-complementary
#336987 #87333F #877B33
monochromatic
#11242E #22465B #336987 #448CB3 #6DA7C8

Accessibility & contrast

On white

5.98
#336987 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#336987 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336987
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336987#FFFFFF#000000##FFFFFF
##3369871.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6888
Deuteranopia (green-blind)
#4F6087
Tritanopia (blue-blind)
#007173
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #336987;
/* rgb */ color: rgb(51, 105, 135);
/* oklch */ color: oklch(49.7% 0.075 235.3);
Tailwind
colors: {
  custom: {
    50: '#7393aa',
    500: '#336987',
    950: '#000000',
  },
}
SCSS
$custom: #336987;
$custom-light: #7393aa;
$custom-dark: #000000;
JSON
{
  "hex": "#336987",
  "rgb": {
    "r": 51,
    "g": 105,
    "b": 135
  },
  "hsl": {
    "h": 201.429,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49713,
    "c": 0.07467,
    "h": 235.3
  },
  "luminance": 0.12556
}

Semantic roles & 50–950 ramp

primary
#336987
secondary
#B08066
accent
#8153D5
background
#F7F9FA
surface
#EDF1F4
border
#C8CBCE
text
#090D10
muted
#7B7E7F

Preview Lab

Preview with #336987

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

Preview Lab → · Contrast checker → · Palette generator →

#336987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva