#336CB3#336CB3

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

Color values

HEX#336CB3
RGBrgb(51, 108, 179)
HSLhsl(213, 56%, 45%)
HSVhsv(213, 72%, 70%)
CMYKcmyk(71.5%, 39.7%, 0%, 29.8%)
CIE-LABlab(45.20, 5.59, -43.12)
CIE-LCHlch(45.20, 43.48, 277.39°)
OKLaboklab(52.88% -0.0323 -0.1229)
OKLCHoklch(52.88% 0.127 255.3)
XYZxyz(14.8615, 14.6820, 44.6898)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CB3 #B37A33
analogous
#33ACB3 #336CB3 #3A33B3
triadic
#336CB3 #B3336C #6CB333
tetradic
#336CB3 #B333AC #B37A33 #33B33A
square
#336CB3 #B333AC #B37A33 #33B33A
split-complementary
#336CB3 #B33A33 #ACB333
monochromatic
#183354 #254F83 #336CB3 #558BCE #84ABDC

Accessibility & contrast

On white

5.33
#336CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336CB3
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CB3#FFFFFF#000000##FFFFFF
##336CB31.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B71B6
Deuteranopia (green-blind)
#3765B2
Tritanopia (blue-blind)
#007D87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336cb3;
/* rgb */ color: rgb(51, 108, 179);
/* oklch */ color: oklch(52.9% 0.127 255.3);
Tailwind
colors: {
  custom: {
    50: '#7a95ca',
    500: '#336cb3',
    950: '#000000',
  },
}
SCSS
$custom: #336cb3;
$custom-light: #7a95ca;
$custom-dark: #000000;
JSON
{
  "hex": "#336cb3",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 179
  },
  "hsl": {
    "h": 213.281,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52879,
    "c": 0.12711,
    "h": 255.3
  },
  "luminance": 0.14684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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