#336AB2#336AB2

#336AB2 is a mid, vivid cyan. Relative luminance 0.142; OKLCH L 52.4% C 0.128 H 256.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#336AB2
RGBrgb(51, 106, 178)
HSLhsl(214, 55%, 45%)
HSVhsv(214, 71%, 70%)
CMYKcmyk(71.3%, 40.4%, 0%, 30.2%)
CIE-LABlab(44.55, 6.48, -43.56)
CIE-LCHlch(44.55, 44.04, 278.46°)
OKLaboklab(52.36% -0.0306 -0.1243)
OKLCHoklch(52.36% 0.128 256.2)
XYZxyz(14.5522, 14.2247, 44.0896)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AB2 #B27B33
analogous
#33AAB2 #336AB2 #3C33B2
triadic
#336AB2 #B2336A #6AB233
tetradic
#336AB2 #B233AA #B27B33 #33B23C
square
#336AB2 #B233AA #B27B33 #33B23C
split-complementary
#336AB2 #B23C33 #AAB233
monochromatic
#183153 #254E82 #336AB2 #5489CE #84AADC

Accessibility & contrast

On white

5.46
#336AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#336AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AB2
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AB2#FFFFFF#000000##FFFFFF
##336AB21.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4870B5
Deuteranopia (green-blind)
#3464B1
Tritanopia (blue-blind)
#007B85
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #336ab2;
/* rgb */ color: rgb(51, 106, 178);
/* oklch */ color: oklch(52.4% 0.128 256.2);
Tailwind
colors: {
  custom: {
    50: '#7a94c9',
    500: '#336ab2',
    950: '#000000',
  },
}
SCSS
$custom: #336ab2;
$custom-light: #7a94c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336ab2",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 178
  },
  "hsl": {
    "h": 214.016,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52361,
    "c": 0.12797,
    "h": 256.2
  },
  "luminance": 0.14226
}

Semantic roles & 50–950 ramp

primary
#336AB2
secondary
#C5A57C
accent
#9E49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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