#336CB2#336CB2

#336CB2 is a mid, vivid cyan. Relative luminance 0.146; OKLCH L 52.8% C 0.126 H 255.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#336CB2
RGBrgb(51, 108, 178)
HSLhsl(213, 55%, 45%)
HSVhsv(213, 71%, 70%)
CMYKcmyk(71.3%, 39.3%, 0%, 30.2%)
CIE-LABlab(45.14, 5.22, -42.63)
CIE-LCHlch(45.14, 42.95, 276.99°)
OKLaboklab(52.82% -0.0325 -0.1215)
OKLCHoklch(52.82% 0.126 255)
XYZxyz(14.7607, 14.6417, 44.1591)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CB2 #B27933
analogous
#33ACB2 #336CB2 #3933B2
triadic
#336CB2 #B2336C #6CB233
tetradic
#336CB2 #B233AC #B27933 #33B239
square
#336CB2 #B233AC #B27933 #33B239
split-complementary
#336CB2 #B23933 #ACB233
monochromatic
#183253 #254F82 #336CB2 #548BCE #84ABDC

Accessibility & contrast

On white

5.35
#336CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#336CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CB2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CB2#FFFFFF#000000##FFFFFF
##336CB21.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C71B5
Deuteranopia (green-blind)
#3865B1
Tritanopia (blue-blind)
#007C86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336cb2;
/* rgb */ color: rgb(51, 108, 178);
/* oklch */ color: oklch(52.8% 0.126 255.0);
Tailwind
colors: {
  custom: {
    50: '#7a95c9',
    500: '#336cb2',
    950: '#000000',
  },
}
SCSS
$custom: #336cb2;
$custom-light: #7a95c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336cb2",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 178
  },
  "hsl": {
    "h": 213.071,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52817,
    "c": 0.12576,
    "h": 255
  },
  "luminance": 0.14643
}

Semantic roles & 50–950 ramp

primary
#336CB2
secondary
#C5A47C
accent
#9C49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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