#336AA7#336AA7

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

Color values

HEX#336AA7
RGBrgb(51, 106, 167)
HSLhsl(212, 53%, 43%)
HSVhsv(212, 69%, 65%)
CMYKcmyk(69.5%, 36.5%, 0%, 34.5%)
CIE-LABlab(43.95, 2.44, -38.08)
CIE-LCHlch(43.95, 38.16, 273.66°)
OKLaboklab(51.69% -0.0333 -0.1082)
OKLCHoklch(51.69% 0.113 252.9)
XYZxyz(13.4918, 13.8005, 38.5044)
Luminance0.1380 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AA7 #A77033
analogous
#33A4A7 #336AA7 #3633A7
triadic
#336AA7 #A7336A #6AA733
tetradic
#336AA7 #A733A4 #A77033 #33A736
square
#336AA7 #A733A4 #A77033 #33A736
split-complementary
#336AA7 #A73633 #A4A733
monochromatic
#162E49 #254C78 #336AA7 #4E88C9 #7DA8D7

Accessibility & contrast

On white

5.58
#336AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#336AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AA7
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AA7#FFFFFF#000000##FFFFFF
##336AA71.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6EAA
Deuteranopia (green-blind)
#3E63A6
Tritanopia (blue-blind)
#007880
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #336aa7;
/* rgb */ color: rgb(51, 106, 167);
/* oklch */ color: oklch(51.7% 0.113 252.9);
Tailwind
colors: {
  custom: {
    50: '#7894c1',
    500: '#336aa7',
    950: '#000000',
  },
}
SCSS
$custom: #336aa7;
$custom-light: #7894c1;
$custom-dark: #000000;
JSON
{
  "hex": "#336aa7",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 167
  },
  "hsl": {
    "h": 211.552,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51689,
    "c": 0.1132,
    "h": 252.9
  },
  "luminance": 0.13802
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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