#336FA8#336FA8

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

Color values

HEX#336FA8
RGBrgb(51, 111, 168)
HSLhsl(209, 53%, 43%)
HSVhsv(209, 70%, 66%)
CMYKcmyk(69.6%, 33.9%, 0%, 34.1%)
CIE-LABlab(45.49, -0.28, -36.22)
CIE-LCHlch(45.49, 36.22, 269.55°)
OKLaboklab(52.92% -0.0381 -0.1027)
OKLCHoklch(52.92% 0.11 249.6)
XYZxyz(14.1149, 14.8983, 39.1700)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FA8 #A86C33
analogous
#33A8A7 #336FA8 #3334A8
triadic
#336FA8 #A8336F #6FA833
tetradic
#336FA8 #A733A8 #A86C33 #34A833
square
#336FA8 #A733A8 #A86C33 #34A833
split-complementary
#336FA8 #A83334 #A8A733
monochromatic
#16314A #255079 #336FA8 #4F8EC9 #7EACD8

Accessibility & contrast

On white

5.28
#336FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#336FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FA8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FA8#FFFFFF#000000##FFFFFF
##336FA81.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5672AA
Deuteranopia (green-blind)
#4567A7
Tritanopia (blue-blind)
#007C84
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336fa8;
/* rgb */ color: rgb(51, 111, 168);
/* oklch */ color: oklch(52.9% 0.110 249.6);
Tailwind
colors: {
  custom: {
    50: '#7898c2',
    500: '#336fa8',
    950: '#000000',
  },
}
SCSS
$custom: #336fa8;
$custom-light: #7898c2;
$custom-dark: #000000;
JSON
{
  "hex": "#336fa8",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 168
  },
  "hsl": {
    "h": 209.231,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5292,
    "c": 0.10954,
    "h": 249.6
  },
  "luminance": 0.149
}

Semantic roles & 50–950 ramp

primary
#336FA8
secondary
#C19A76
accent
#924BDD
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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