#336AA8#336AA8

#336AA8 is a mid, moderate cyan. Relative luminance 0.138; OKLCH L 51.7% C 0.115 H 253.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#336AA8
RGBrgb(51, 106, 168)
HSLhsl(212, 53%, 43%)
HSVhsv(212, 70%, 66%)
CMYKcmyk(69.6%, 36.9%, 0%, 34.1%)
CIE-LABlab(44.00, 2.80, -38.58)
CIE-LCHlch(44.00, 38.68, 274.16°)
OKLaboklab(51.75% -0.033 -0.1097)
OKLCHoklch(51.75% 0.115 253.2)
XYZxyz(13.5846, 13.8376, 38.9932)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AA8 #A87133
analogous
#33A4A8 #336AA8 #3633A8
triadic
#336AA8 #A8336A #6AA833
tetradic
#336AA8 #A833A4 #A87133 #33A836
square
#336AA8 #A833A4 #A87133 #33A836
split-complementary
#336AA8 #A83633 #A4A833
monochromatic
#162F4A #254C79 #336AA8 #4F88C9 #7EA8D8

Accessibility & contrast

On white

5.57
#336AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#336AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AA8
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AA8#FFFFFF#000000##FFFFFF
##336AA81.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAB
Deuteranopia (green-blind)
#3D63A7
Tritanopia (blue-blind)
#007881
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #336aa8;
/* rgb */ color: rgb(51, 106, 168);
/* oklch */ color: oklch(51.7% 0.115 253.2);
Tailwind
colors: {
  custom: {
    50: '#7894c2',
    500: '#336aa8',
    950: '#000000',
  },
}
SCSS
$custom: #336aa8;
$custom-light: #7894c2;
$custom-dark: #000000;
JSON
{
  "hex": "#336aa8",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 168
  },
  "hsl": {
    "h": 211.795,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51748,
    "c": 0.11453,
    "h": 253.2
  },
  "luminance": 0.13839
}

Semantic roles & 50–950 ramp

primary
#336AA8
secondary
#C19E76
accent
#984BDD
background
#F7F9FB
surface
#EEF1F7
border
#C9CBD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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