#336CB4#336CB4

#336CB4 is a mid, vivid cyan. Relative luminance 0.147; OKLCH L 52.9% C 0.128 H 255.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#336CB4
RGBrgb(51, 108, 180)
HSLhsl(213, 56%, 45%)
HSVhsv(213, 72%, 71%)
CMYKcmyk(71.7%, 40%, 0%, 29.4%)
CIE-LABlab(45.25, 5.96, -43.62)
CIE-LCHlch(45.25, 44.02, 277.78°)
OKLaboklab(52.94% -0.032 -0.1244)
OKLCHoklch(52.94% 0.128 255.6)
XYZxyz(14.9630, 14.7226, 45.2243)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CB4 #B47B33
analogous
#33ADB4 #336CB4 #3A33B4
triadic
#336CB4 #B4336C #6CB433
tetradic
#336CB4 #B433AD #B47B33 #33B43A
square
#336CB4 #B433AD #B47B33 #33B43A
split-complementary
#336CB4 #B43A33 #ADB433
monochromatic
#183355 #254F84 #336CB4 #558BCF #85ACDC

Accessibility & contrast

On white

5.32
#336CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#336CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CB4
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CB4#FFFFFF#000000##FFFFFF
##336CB41.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A72B7
Deuteranopia (green-blind)
#3666B3
Tritanopia (blue-blind)
#007D87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336cb4;
/* rgb */ color: rgb(51, 108, 180);
/* oklch */ color: oklch(52.9% 0.128 255.6);
Tailwind
colors: {
  custom: {
    50: '#7b95cb',
    500: '#336cb4',
    950: '#000000',
  },
}
SCSS
$custom: #336cb4;
$custom-light: #7b95cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336cb4",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 180
  },
  "hsl": {
    "h": 213.488,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52941,
    "c": 0.12845,
    "h": 255.6
  },
  "luminance": 0.14724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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