#336797#336797

#336797 is a mid, moderate cyan. Relative luminance 0.126; OKLCH L 50.1% C 0.095 H 248.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#336797
RGBrgb(51, 103, 151)
HSLhsl(209, 50%, 40%)
HSVhsv(209, 66%, 59%)
CMYKcmyk(66.2%, 31.8%, 0%, 40.8%)
CIE-LABlab(42.21, -1.49, -31.33)
CIE-LCHlch(42.21, 31.37, 267.28°)
OKLaboklab(50.06% -0.0347 -0.0885)
OKLCHoklch(50.06% 0.095 248.6)
XYZxyz(11.7993, 12.6375, 31.0896)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336797 #976333
analogous
#339795 #336797 #333597
triadic
#336797 #973367 #679733
tetradic
#336797 #953397 #976333 #359733
square
#336797 #953397 #976333 #359733
split-complementary
#336797 #973335 #979533
monochromatic
#14293C #244869 #336797 #4786C1 #74A4D0

Accessibility & contrast

On white

5.95
#336797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#336797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336797
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336797#FFFFFF#000000##FFFFFF
##3367971.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526999
Deuteranopia (green-blind)
#445F96
Tritanopia (blue-blind)
#007278
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #336797;
/* rgb */ color: rgb(51, 103, 151);
/* oklch */ color: oklch(50.1% 0.095 248.6);
Tailwind
colors: {
  custom: {
    50: '#7592b6',
    500: '#336797',
    950: '#000000',
  },
}
SCSS
$custom: #336797;
$custom-light: #7592b6;
$custom-dark: #000000;
JSON
{
  "hex": "#336797",
  "rgb": {
    "r": 51,
    "g": 103,
    "b": 151
  },
  "hsl": {
    "h": 208.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50058,
    "c": 0.09512,
    "h": 248.6
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#336797
secondary
#B8916D
accent
#914FD9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #336797

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

Preview Lab → · Contrast checker → · Palette generator →

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