#336FB2#336FB2

#336FB2 is a mid, vivid cyan. Relative luminance 0.153; OKLCH L 53.5% C 0.123 H 253.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#336FB2
RGBrgb(51, 111, 178)
HSLhsl(212, 55%, 45%)
HSVhsv(212, 71%, 70%)
CMYKcmyk(71.3%, 37.6%, 0%, 30.2%)
CIE-LABlab(46.02, 3.36, -41.23)
CIE-LCHlch(46.02, 41.36, 274.66°)
OKLaboklab(53.51% -0.0354 -0.1173)
OKLCHoklch(53.51% 0.123 253.2)
XYZxyz(15.0826, 15.2854, 44.2663)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FB2 #B27633
analogous
#33AEB2 #336FB2 #3733B2
triadic
#336FB2 #B2336F #6FB233
tetradic
#336FB2 #B233AE #B27633 #33B237
square
#336FB2 #B233AE #B27633 #33B237
split-complementary
#336FB2 #B23733 #AEB233
monochromatic
#183453 #255182 #336FB2 #548ECE #84ADDC

Accessibility & contrast

On white

5.18
#336FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#336FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FB2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FB2#FFFFFF#000000##FFFFFF
##336FB21.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5073B5
Deuteranopia (green-blind)
#3E68B1
Tritanopia (blue-blind)
#007F88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336fb2;
/* rgb */ color: rgb(51, 111, 178);
/* oklch */ color: oklch(53.5% 0.123 253.2);
Tailwind
colors: {
  custom: {
    50: '#7a97c9',
    500: '#336fb2',
    950: '#000000',
  },
}
SCSS
$custom: #336fb2;
$custom-light: #7a97c9;
$custom-dark: #000000;
JSON
{
  "hex": "#336fb2",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 178
  },
  "hsl": {
    "h": 211.654,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.53506,
    "c": 0.12256,
    "h": 253.2
  },
  "luminance": 0.15287
}

Semantic roles & 50–950 ramp

primary
#336FB2
secondary
#C5A27C
accent
#9849DF
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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