#336AB5#336AB5

#336AB5 is a mid, vivid cyan. Relative luminance 0.143; OKLCH L 52.6% C 0.132 H 256.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#336AB5
RGBrgb(51, 106, 181)
HSLhsl(215, 56%, 45%)
HSVhsv(215, 72%, 71%)
CMYKcmyk(71.8%, 41.4%, 0%, 29%)
CIE-LABlab(44.73, 7.59, -45.04)
CIE-LCHlch(44.73, 45.67, 279.56°)
OKLaboklab(52.55% -0.0299 -0.1286)
OKLCHoklch(52.55% 0.132 256.9)
XYZxyz(14.8567, 14.3465, 45.6933)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AB5 #B57E33
analogous
#33ABB5 #336AB5 #3D33B5
triadic
#336AB5 #B5336A #6AB533
tetradic
#336AB5 #B533AB #B57E33 #33B53D
square
#336AB5 #B533AB #B57E33 #33B53D
split-complementary
#336AB5 #B53D33 #ABB533
monochromatic
#183256 #264E85 #336AB5 #5689CF #86AADD

Accessibility & contrast

On white

5.43
#336AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#336AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AB5
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AB5#FFFFFF#000000##FFFFFF
##336AB51.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4670B8
Deuteranopia (green-blind)
#3164B3
Tritanopia (blue-blind)
#007B86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336ab5;
/* rgb */ color: rgb(51, 106, 181);
/* oklch */ color: oklch(52.6% 0.132 256.9);
Tailwind
colors: {
  custom: {
    50: '#7b94cb',
    500: '#336ab5',
    950: '#000000',
  },
}
SCSS
$custom: #336ab5;
$custom-light: #7b94cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336ab5",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 181
  },
  "hsl": {
    "h": 214.615,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52551,
    "c": 0.13202,
    "h": 256.9
  },
  "luminance": 0.14348
}

Semantic roles & 50–950 ramp

primary
#336AB5
secondary
#C6A87D
accent
#A048DF
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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