#336FA6#336FA6

#336FA6 is a mid, moderate cyan. Relative luminance 0.148; OKLCH L 52.8% C 0.107 H 248.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#336FA6
RGBrgb(51, 111, 166)
HSLhsl(209, 53%, 43%)
HSVhsv(209, 69%, 65%)
CMYKcmyk(69.3%, 33.1%, 0%, 34.9%)
CIE-LABlab(45.39, -1.01, -35.20)
CIE-LCHlch(45.39, 35.22, 268.36°)
OKLaboklab(52.81% -0.0387 -0.0997)
OKLCHoklch(52.81% 0.107 248.8)
XYZxyz(13.9300, 14.8244, 38.1963)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FA6 #A66A33
analogous
#33A6A4 #336FA6 #3335A6
triadic
#336FA6 #A6336F #6FA633
tetradic
#336FA6 #A433A6 #A66A33 #35A633
square
#336FA6 #A433A6 #A66A33 #35A633
split-complementary
#336FA6 #A63335 #A6A433
monochromatic
#163048 #255077 #336FA6 #4E8EC9 #7CACD7

Accessibility & contrast

On white

5.30
#336FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#336FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FA6
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FA6#FFFFFF#000000##FFFFFF
##336FA61.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5771A8
Deuteranopia (green-blind)
#4667A5
Tritanopia (blue-blind)
#007C83
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336fa6;
/* rgb */ color: rgb(51, 111, 166);
/* oklch */ color: oklch(52.8% 0.107 248.8);
Tailwind
colors: {
  custom: {
    50: '#7898c0',
    500: '#336fa6',
    950: '#000000',
  },
}
SCSS
$custom: #336fa6;
$custom-light: #7898c0;
$custom-dark: #000000;
JSON
{
  "hex": "#336fa6",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 166
  },
  "hsl": {
    "h": 208.696,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52807,
    "c": 0.10698,
    "h": 248.8
  },
  "luminance": 0.14826
}

Semantic roles & 50–950 ramp

primary
#336FA6
secondary
#C09975
accent
#914BDC
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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