#336FB8#336FB8

#336FB8 is a mid, vivid cyan. Relative luminance 0.155; OKLCH L 53.9% C 0.131 H 254.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#336FB8
RGBrgb(51, 111, 184)
HSLhsl(213, 57%, 46%)
HSVhsv(213, 72%, 72%)
CMYKcmyk(72.3%, 39.7%, 0%, 27.8%)
CIE-LABlab(46.35, 5.56, -44.19)
CIE-LCHlch(46.35, 44.54, 277.18°)
OKLaboklab(53.87% -0.0339 -0.126)
OKLCHoklch(53.87% 0.131 254.9)
XYZxyz(15.6982, 15.5317, 47.5087)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FB8 #B87C33
analogous
#33B1B8 #336FB8 #3933B8
triadic
#336FB8 #B8336F #6FB833
tetradic
#336FB8 #B833B1 #B87C33 #33B839
square
#336FB8 #B833B1 #B87C33 #33B839
split-complementary
#336FB8 #B83933 #B1B833
monochromatic
#183558 #265288 #336FB8 #588ED1 #88AEDE

Accessibility & contrast

On white

5.11
#336FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#336FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FB8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FB8#FFFFFF#000000##FFFFFF
##336FB81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D75BB
Deuteranopia (green-blind)
#3868B7
Tritanopia (blue-blind)
#00808A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #336fb8;
/* rgb */ color: rgb(51, 111, 184);
/* oklch */ color: oklch(53.9% 0.131 254.9);
Tailwind
colors: {
  custom: {
    50: '#7b97ce',
    500: '#336fb8',
    950: '#000000',
  },
}
SCSS
$custom: #336fb8;
$custom-light: #7b97ce;
$custom-dark: #000000;
JSON
{
  "hex": "#336fb8",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 184
  },
  "hsl": {
    "h": 212.932,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53872,
    "c": 0.1305,
    "h": 254.9
  },
  "luminance": 0.15533
}

Semantic roles & 50–950 ramp

primary
#336FB8
secondary
#C8A77F
accent
#9B48E0
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #336FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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