#336FA7#336FA7

#336FA7 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.9% C 0.108 H 249.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#336FA7
RGBrgb(51, 111, 167)
HSLhsl(209, 53%, 43%)
HSVhsv(209, 69%, 65%)
CMYKcmyk(69.5%, 33.5%, 0%, 34.5%)
CIE-LABlab(45.44, -0.65, -35.71)
CIE-LCHlch(45.44, 35.72, 268.96°)
OKLaboklab(52.86% -0.0384 -0.1012)
OKLCHoklch(52.86% 0.108 249.2)
XYZxyz(14.0221, 14.8612, 38.6812)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FA7 #A76B33
analogous
#33A7A5 #336FA7 #3335A7
triadic
#336FA7 #A7336F #6FA733
tetradic
#336FA7 #A533A7 #A76B33 #35A733
square
#336FA7 #A533A7 #A76B33 #35A733
split-complementary
#336FA7 #A73335 #A7A533
monochromatic
#163149 #255078 #336FA7 #4E8EC9 #7DACD7

Accessibility & contrast

On white

5.29
#336FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#336FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FA7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FA7#FFFFFF#000000##FFFFFF
##336FA71.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5672A9
Deuteranopia (green-blind)
#4667A6
Tritanopia (blue-blind)
#007C83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336fa7;
/* rgb */ color: rgb(51, 111, 167);
/* oklch */ color: oklch(52.9% 0.108 249.2);
Tailwind
colors: {
  custom: {
    50: '#7898c1',
    500: '#336fa7',
    950: '#000000',
  },
}
SCSS
$custom: #336fa7;
$custom-light: #7898c1;
$custom-dark: #000000;
JSON
{
  "hex": "#336fa7",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 167
  },
  "hsl": {
    "h": 208.966,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52863,
    "c": 0.10825,
    "h": 249.2
  },
  "luminance": 0.14863
}

Semantic roles & 50–950 ramp

primary
#336FA7
secondary
#C09A76
accent
#914BDD
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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