#336FB1#336FB1

#336FB1 is a mid, vivid cyan. Relative luminance 0.152; OKLCH L 53.4% C 0.121 H 252.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#336FB1
RGBrgb(51, 111, 177)
HSLhsl(211, 55%, 45%)
HSVhsv(211, 71%, 69%)
CMYKcmyk(71.2%, 37.3%, 0%, 30.6%)
CIE-LABlab(45.97, 2.99, -40.73)
CIE-LCHlch(45.97, 40.84, 274.20°)
OKLaboklab(53.45% -0.0357 -0.1159)
OKLCHoklch(53.45% 0.121 252.9)
XYZxyz(14.9826, 15.2454, 43.7395)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FB1 #B17533
analogous
#33AEB1 #336FB1 #3633B1
triadic
#336FB1 #B1336F #6FB133
tetradic
#336FB1 #B133AE #B17533 #33B136
square
#336FB1 #B133AE #B17533 #33B136
split-complementary
#336FB1 #B13633 #AEB133
monochromatic
#183352 #255181 #336FB1 #548ECE #83ADDB

Accessibility & contrast

On white

5.19
#336FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#336FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FB1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FB1#FFFFFF#000000##FFFFFF
##336FB11.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5173B4
Deuteranopia (green-blind)
#3E67B0
Tritanopia (blue-blind)
#007E87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336fb1;
/* rgb */ color: rgb(51, 111, 177);
/* oklch */ color: oklch(53.4% 0.121 252.9);
Tailwind
colors: {
  custom: {
    50: '#7a97c8',
    500: '#336fb1',
    950: '#000000',
  },
}
SCSS
$custom: #336fb1;
$custom-light: #7a97c8;
$custom-dark: #000000;
JSON
{
  "hex": "#336fb1",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 177
  },
  "hsl": {
    "h": 211.429,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53446,
    "c": 0.12125,
    "h": 252.9
  },
  "luminance": 0.15247
}

Semantic roles & 50–950 ramp

primary
#336FB1
secondary
#C5A27B
accent
#9749DF
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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