#336FB5#336FB5

#336FB5 is a mid, vivid cyan. Relative luminance 0.154; OKLCH L 53.7% C 0.127 H 254.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#336FB5
RGBrgb(51, 111, 181)
HSLhsl(212, 56%, 45%)
HSVhsv(212, 72%, 71%)
CMYKcmyk(71.8%, 38.7%, 0%, 29%)
CIE-LABlab(46.19, 4.46, -42.71)
CIE-LCHlch(46.19, 42.94, 275.96°)
OKLaboklab(53.69% -0.0347 -0.1217)
OKLCHoklch(53.69% 0.127 254.1)
XYZxyz(15.3871, 15.4072, 45.8701)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FB5 #B57933
analogous
#33B0B5 #336FB5 #3833B5
triadic
#336FB5 #B5336F #6FB533
tetradic
#336FB5 #B533B0 #B57933 #33B538
square
#336FB5 #B533B0 #B57933 #33B538
split-complementary
#336FB5 #B53833 #B0B533
monochromatic
#183456 #265285 #336FB5 #568ECF #86AEDD

Accessibility & contrast

On white

5.14
#336FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#336FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FB5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FB5#FFFFFF#000000##FFFFFF
##336FB51.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #336fb5;
/* rgb */ color: rgb(51, 111, 181);
/* oklch */ color: oklch(53.7% 0.127 254.1);
Tailwind
colors: {
  custom: {
    50: '#7b97cb',
    500: '#336fb5',
    950: '#000000',
  },
}
SCSS
$custom: #336fb5;
$custom-light: #7b97cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336fb5",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 181
  },
  "hsl": {
    "h": 212.308,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53688,
    "c": 0.12652,
    "h": 254.1
  },
  "luminance": 0.15409
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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