#336BA4#336BA4

#336BA4 is a mid, moderate cyan. Relative luminance 0.139; OKLCH L 51.7% C 0.108 H 251.0°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#336BA4
RGBrgb(51, 107, 164)
HSLhsl(210, 53%, 42%)
HSVhsv(210, 69%, 64%)
CMYKcmyk(68.9%, 34.8%, 0%, 35.7%)
CIE-LABlab(44.09, 0.73, -36.09)
CIE-LCHlch(44.09, 36.09, 271.15°)
OKLaboklab(51.75% -0.0351 -0.1024)
OKLCHoklch(51.75% 0.108 251)
XYZxyz(13.3213, 13.8981, 37.0953)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BA4 #A46C33
analogous
#33A4A4 #336BA4 #3333A4
triadic
#336BA4 #A4336B #6BA433
tetradic
#336BA4 #A433A4 #A46C33 #33A433
square
#336BA4 #A433A4 #A46C33 #33A433
split-complementary
#336BA4 #A43333 #A4A433
monochromatic
#162E47 #244D75 #336BA4 #4D8AC8 #7BA8D6

Accessibility & contrast

On white

5.56
#336BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#336BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BA4
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BA4#FFFFFF#000000##FFFFFF
##336BA41.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526EA6
Deuteranopia (green-blind)
#4263A3
Tritanopia (blue-blind)
#007880
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #336ba4;
/* rgb */ color: rgb(51, 107, 164);
/* oklch */ color: oklch(51.7% 0.108 251.0);
Tailwind
colors: {
  custom: {
    50: '#7895bf',
    500: '#336ba4',
    950: '#000000',
  },
}
SCSS
$custom: #336ba4;
$custom-light: #7895bf;
$custom-dark: #000000;
JSON
{
  "hex": "#336ba4",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 164
  },
  "hsl": {
    "h": 210.265,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51748,
    "c": 0.10823,
    "h": 251
  },
  "luminance": 0.139
}

Semantic roles & 50–950 ramp

primary
#336BA4
secondary
#BF9A74
accent
#954CDC
background
#F7F9FB
surface
#EEF1F7
border
#C9CBD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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