#336EB5#336EB5

#336EB5 is a mid, vivid cyan. Relative luminance 0.152; OKLCH L 53.5% C 0.128 H 254.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#336EB5
RGBrgb(51, 110, 181)
HSLhsl(213, 56%, 45%)
HSVhsv(213, 72%, 71%)
CMYKcmyk(71.8%, 39.2%, 0%, 29%)
CIE-LABlab(45.89, 5.08, -43.18)
CIE-LCHlch(45.89, 43.47, 276.71°)
OKLaboklab(53.46% -0.0337 -0.1231)
OKLCHoklch(53.46% 0.128 254.7)
XYZxyz(15.2786, 15.1902, 45.8339)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336EB5 #B57A33
analogous
#33AFB5 #336EB5 #3933B5
triadic
#336EB5 #B5336E #6EB533
tetradic
#336EB5 #B533AF #B57A33 #33B539
square
#336EB5 #B533AF #B57A33 #33B539
split-complementary
#336EB5 #B53933 #AFB533
monochromatic
#183456 #265185 #336EB5 #568DCF #86ADDD

Accessibility & contrast

On white

5.20
#336EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#336EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336EB5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336EB5#FFFFFF#000000##FFFFFF
##336EB51.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D73B8
Deuteranopia (green-blind)
#3967B4
Tritanopia (blue-blind)
#007F89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336eb5;
/* rgb */ color: rgb(51, 110, 181);
/* oklch */ color: oklch(53.5% 0.128 254.7);
Tailwind
colors: {
  custom: {
    50: '#7b97cb',
    500: '#336eb5',
    950: '#000000',
  },
}
SCSS
$custom: #336eb5;
$custom-light: #7b97cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336eb5",
  "rgb": {
    "r": 51,
    "g": 110,
    "b": 181
  },
  "hsl": {
    "h": 212.769,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53459,
    "c": 0.1276,
    "h": 254.7
  },
  "luminance": 0.15192
}

Semantic roles & 50–950 ramp

primary
#336EB5
secondary
#C6A57D
accent
#9B48DF
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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