#336AB1#336AB1

#336AB1 is a mid, vivid cyan. Relative luminance 0.142; OKLCH L 52.3% C 0.127 H 255.9°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#336AB1
RGBrgb(51, 106, 177)
HSLhsl(214, 55%, 45%)
HSVhsv(214, 71%, 69%)
CMYKcmyk(71.2%, 40.1%, 0%, 30.6%)
CIE-LABlab(44.50, 6.11, -43.07)
CIE-LCHlch(44.50, 43.50, 278.07°)
OKLaboklab(52.3% -0.0308 -0.1228)
OKLCHoklch(52.3% 0.127 255.9)
XYZxyz(14.4522, 14.1847, 43.5627)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AB1 #B17A33
analogous
#33A9B1 #336AB1 #3B33B1
triadic
#336AB1 #B1336A #6AB133
tetradic
#336AB1 #B133A9 #B17A33 #33B13B
square
#336AB1 #B133A9 #B17A33 #33B13B
split-complementary
#336AB1 #B13B33 #A9B133
monochromatic
#183152 #254E81 #336AB1 #5489CE #83AADB

Accessibility & contrast

On white

5.47
#336AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#336AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AB1
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AB1#FFFFFF#000000##FFFFFF
##336AB11.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4970B4
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#007B85
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #336ab1;
/* rgb */ color: rgb(51, 106, 177);
/* oklch */ color: oklch(52.3% 0.127 255.9);
Tailwind
colors: {
  custom: {
    50: '#7a94c9',
    500: '#336ab1',
    950: '#000000',
  },
}
SCSS
$custom: #336ab1;
$custom-light: #7a94c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336ab1",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 177
  },
  "hsl": {
    "h": 213.81,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52298,
    "c": 0.12662,
    "h": 255.9
  },
  "luminance": 0.14186
}

Semantic roles & 50–950 ramp

primary
#336AB1
secondary
#C5A57B
accent
#9D49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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