#336EB3#336EB3

#336EB3 is a mid, vivid cyan. Relative luminance 0.151; OKLCH L 53.3% C 0.125 H 254.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#336EB3
RGBrgb(51, 110, 179)
HSLhsl(212, 56%, 45%)
HSVhsv(212, 72%, 70%)
CMYKcmyk(71.5%, 38.5%, 0%, 29.8%)
CIE-LABlab(45.78, 4.35, -42.19)
CIE-LCHlch(45.78, 42.41, 275.88°)
OKLaboklab(53.34% -0.0342 -0.1202)
OKLCHoklch(53.34% 0.125 254.1)
XYZxyz(15.0749, 15.1087, 44.7609)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336EB3 #B37833
analogous
#33AEB3 #336EB3 #3833B3
triadic
#336EB3 #B3336E #6EB333
tetradic
#336EB3 #B333AE #B37833 #33B338
square
#336EB3 #B333AE #B37833 #33B338
split-complementary
#336EB3 #B33833 #AEB333
monochromatic
#183354 #255183 #336EB3 #558DCE #84ADDC

Accessibility & contrast

On white

5.22
#336EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#336EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336EB3
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336EB3#FFFFFF#000000##FFFFFF
##336EB31.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E73B6
Deuteranopia (green-blind)
#3B67B2
Tritanopia (blue-blind)
#007E88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336eb3;
/* rgb */ color: rgb(51, 110, 179);
/* oklch */ color: oklch(53.3% 0.125 254.1);
Tailwind
colors: {
  custom: {
    50: '#7a97ca',
    500: '#336eb3',
    950: '#000000',
  },
}
SCSS
$custom: #336eb3;
$custom-light: #7a97ca;
$custom-dark: #000000;
JSON
{
  "hex": "#336eb3",
  "rgb": {
    "r": 51,
    "g": 110,
    "b": 179
  },
  "hsl": {
    "h": 212.344,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53337,
    "c": 0.12494,
    "h": 254.1
  },
  "luminance": 0.1511
}

Semantic roles & 50–950 ramp

primary
#336EB3
secondary
#C6A47C
accent
#9A49DF
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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