#336CB5#336CB5

#336CB5 is a mid, vivid cyan. Relative luminance 0.148; OKLCH L 53.0% C 0.130 H 255.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#336CB5
RGBrgb(51, 108, 181)
HSLhsl(214, 56%, 45%)
HSVhsv(214, 72%, 71%)
CMYKcmyk(71.8%, 40.3%, 0%, 29%)
CIE-LABlab(45.31, 6.33, -44.11)
CIE-LCHlch(45.31, 44.56, 278.17°)
OKLaboklab(53% -0.0318 -0.1258)
OKLCHoklch(53% 0.13 255.8)
XYZxyz(15.0652, 14.7635, 45.7628)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CB5 #B57C33
analogous
#33ADB5 #336CB5 #3B33B5
triadic
#336CB5 #B5336C #6CB533
tetradic
#336CB5 #B533AD #B57C33 #33B53B
square
#336CB5 #B533AD #B57C33 #33B53B
split-complementary
#336CB5 #B53B33 #ADB533
monochromatic
#183356 #265085 #336CB5 #568BCF #86ACDD

Accessibility & contrast

On white

5.31
#336CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#336CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CB5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CB5#FFFFFF#000000##FFFFFF
##336CB51.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A72B8
Deuteranopia (green-blind)
#3566B4
Tritanopia (blue-blind)
#007D88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336cb5;
/* rgb */ color: rgb(51, 108, 181);
/* oklch */ color: oklch(53.0% 0.130 255.8);
Tailwind
colors: {
  custom: {
    50: '#7b95cb',
    500: '#336cb5',
    950: '#000000',
  },
}
SCSS
$custom: #336cb5;
$custom-light: #7b95cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336cb5",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 181
  },
  "hsl": {
    "h": 213.692,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53004,
    "c": 0.12979,
    "h": 255.8
  },
  "luminance": 0.14765
}

Semantic roles & 50–950 ramp

primary
#336CB5
secondary
#C6A67D
accent
#9D48DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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