#336FAB#336FAB

#336FAB is a mid, moderate cyan. Relative luminance 0.150; OKLCH L 53.1% C 0.113 H 250.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#336FAB
RGBrgb(51, 111, 171)
HSLhsl(210, 54%, 44%)
HSVhsv(210, 70%, 67%)
CMYKcmyk(70.2%, 35.1%, 0%, 32.9%)
CIE-LABlab(45.65, 0.80, -37.73)
CIE-LCHlch(45.65, 37.74, 271.22°)
OKLaboklab(53.09% -0.0373 -0.1071)
OKLCHoklch(53.09% 0.113 250.8)
XYZxyz(14.3976, 15.0114, 40.6589)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FAB #AB6F33
analogous
#33ABAB #336FAB #3333AB
triadic
#336FAB #AB336F #6FAB33
tetradic
#336FAB #AB33AB #AB6F33 #33AB33
square
#336FAB #AB33AB #AB6F33 #33AB33
split-complementary
#336FAB #AB3333 #ABAB33
monochromatic
#17324D #25507C #336FAB #508ECB #7FACD9

Accessibility & contrast

On white

5.25
#336FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#336FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FAB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FAB#FFFFFF#000000##FFFFFF
##336FAB1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5472AE
Deuteranopia (green-blind)
#4367AA
Tritanopia (blue-blind)
#007D85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336fab;
/* rgb */ color: rgb(51, 111, 171);
/* oklch */ color: oklch(53.1% 0.113 250.8);
Tailwind
colors: {
  custom: {
    50: '#7998c4',
    500: '#336fab',
    950: '#000000',
  },
}
SCSS
$custom: #336fab;
$custom-light: #7998c4;
$custom-dark: #000000;
JSON
{
  "hex": "#336fab",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 171
  },
  "hsl": {
    "h": 210,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53093,
    "c": 0.1134,
    "h": 250.8
  },
  "luminance": 0.15013
}

Semantic roles & 50–950 ramp

primary
#336FAB
secondary
#C29D78
accent
#944ADD
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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