#336BA7#336BA7

#336BA7 is a mid, moderate cyan. Relative luminance 0.140; OKLCH L 51.9% C 0.112 H 252.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#336BA7
RGBrgb(51, 107, 167)
HSLhsl(211, 53%, 43%)
HSVhsv(211, 69%, 65%)
CMYKcmyk(69.5%, 35.9%, 0%, 34.5%)
CIE-LABlab(44.24, 1.82, -37.60)
CIE-LCHlch(44.24, 37.65, 272.77°)
OKLaboklab(51.92% -0.0343 -0.1068)
OKLCHoklch(51.92% 0.112 252.2)
XYZxyz(13.5954, 14.0078, 38.5390)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BA7 #A76F33
analogous
#33A5A7 #336BA7 #3533A7
triadic
#336BA7 #A7336B #6BA733
tetradic
#336BA7 #A733A5 #A76F33 #33A735
square
#336BA7 #A733A5 #A76F33 #33A735
split-complementary
#336BA7 #A73533 #A5A733
monochromatic
#162F49 #254D78 #336BA7 #4E89C9 #7DA9D7

Accessibility & contrast

On white

5.52
#336BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#336BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BA7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BA7#FFFFFF#000000##FFFFFF
##336BA71.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506FA9
Deuteranopia (green-blind)
#4064A6
Tritanopia (blue-blind)
#007981
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #336ba7;
/* rgb */ color: rgb(51, 107, 167);
/* oklch */ color: oklch(51.9% 0.112 252.2);
Tailwind
colors: {
  custom: {
    50: '#7895c1',
    500: '#336ba7',
    950: '#000000',
  },
}
SCSS
$custom: #336ba7;
$custom-light: #7895c1;
$custom-dark: #000000;
JSON
{
  "hex": "#336ba7",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 167
  },
  "hsl": {
    "h": 211.034,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51923,
    "c": 0.11218,
    "h": 252.2
  },
  "luminance": 0.14009
}

Semantic roles & 50–950 ramp

primary
#336BA7
secondary
#C09C76
accent
#964BDD
background
#F7F9FB
surface
#EEF1F7
border
#C9CBD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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