#336FA4#336FA4

#336FA4 is a mid, moderate cyan. Relative luminance 0.148; OKLCH L 52.7% C 0.104 H 247.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#336FA4
RGBrgb(51, 111, 164)
HSLhsl(208, 53%, 42%)
HSVhsv(208, 69%, 64%)
CMYKcmyk(68.9%, 32.3%, 0%, 35.7%)
CIE-LABlab(45.29, -1.73, -34.19)
CIE-LCHlch(45.29, 34.23, 267.11°)
OKLaboklab(52.69% -0.0393 -0.0968)
OKLCHoklch(52.69% 0.104 247.9)
XYZxyz(13.7480, 14.7516, 37.2376)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FA4 #A46833
analogous
#33A4A1 #336FA4 #3336A4
triadic
#336FA4 #A4336F #6FA433
tetradic
#336FA4 #A133A4 #A46833 #36A433
square
#336FA4 #A133A4 #A46833 #36A433
split-complementary
#336FA4 #A43336 #A4A133
monochromatic
#163047 #244F75 #336FA4 #4D8EC8 #7BACD6

Accessibility & contrast

On white

5.32
#336FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#336FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FA4
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FA4#FFFFFF#000000##FFFFFF
##336FA41.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5771A6
Deuteranopia (green-blind)
#4866A3
Tritanopia (blue-blind)
#007C82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336fa4;
/* rgb */ color: rgb(51, 111, 164);
/* oklch */ color: oklch(52.7% 0.104 247.9);
Tailwind
colors: {
  custom: {
    50: '#7898bf',
    500: '#336fa4',
    950: '#000000',
  },
}
SCSS
$custom: #336fa4;
$custom-light: #7898bf;
$custom-dark: #000000;
JSON
{
  "hex": "#336fa4",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 164
  },
  "hsl": {
    "h": 208.142,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52694,
    "c": 0.10444,
    "h": 247.9
  },
  "luminance": 0.14753
}

Semantic roles & 50–950 ramp

primary
#336FA4
secondary
#BF9774
accent
#8F4CDC
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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