#336FB4#336FB4

#336FB4 is a mid, vivid cyan. Relative luminance 0.154; OKLCH L 53.6% C 0.125 H 253.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#336FB4
RGBrgb(51, 111, 180)
HSLhsl(212, 56%, 45%)
HSVhsv(212, 72%, 71%)
CMYKcmyk(71.7%, 38.3%, 0%, 29.4%)
CIE-LABlab(46.13, 4.09, -42.22)
CIE-LCHlch(46.13, 42.41, 275.54°)
OKLaboklab(53.63% -0.0349 -0.1202)
OKLCHoklch(53.63% 0.125 253.8)
XYZxyz(15.2849, 15.3663, 45.3316)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FB4 #B47833
analogous
#33AFB4 #336FB4 #3733B4
triadic
#336FB4 #B4336F #6FB433
tetradic
#336FB4 #B433AF #B47833 #33B437
square
#336FB4 #B433AF #B47833 #33B437
split-complementary
#336FB4 #B43733 #AFB433
monochromatic
#183455 #255284 #336FB4 #558ECF #85AEDC

Accessibility & contrast

On white

5.16
#336FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#336FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FB4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FB4#FFFFFF#000000##FFFFFF
##336FB41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F74B7
Deuteranopia (green-blind)
#3C68B3
Tritanopia (blue-blind)
#007F89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336fb4;
/* rgb */ color: rgb(51, 111, 180);
/* oklch */ color: oklch(53.6% 0.125 253.8);
Tailwind
colors: {
  custom: {
    50: '#7b97cb',
    500: '#336fb4',
    950: '#000000',
  },
}
SCSS
$custom: #336fb4;
$custom-light: #7b97cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336fb4",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 180
  },
  "hsl": {
    "h": 212.093,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53627,
    "c": 0.12521,
    "h": 253.8
  },
  "luminance": 0.15368
}

Semantic roles & 50–950 ramp

primary
#336FB4
secondary
#C6A47D
accent
#9949DF
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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