#336DB5#336DB5

#336DB5 is a mid, vivid cyan. Relative luminance 0.150; OKLCH L 53.2% C 0.129 H 255.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#336DB5
RGBrgb(51, 109, 181)
HSLhsl(213, 56%, 45%)
HSVhsv(213, 72%, 71%)
CMYKcmyk(71.8%, 39.8%, 0%, 29%)
CIE-LABlab(45.60, 5.71, -43.64)
CIE-LCHlch(45.60, 44.01, 277.45°)
OKLaboklab(53.23% -0.0328 -0.1244)
OKLCHoklch(53.23% 0.129 255.3)
XYZxyz(15.1713, 14.9756, 45.7981)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DB5 #B57B33
analogous
#33AEB5 #336DB5 #3A33B5
triadic
#336DB5 #B5336D #6DB533
tetradic
#336DB5 #B533AE #B57B33 #33B53A
square
#336DB5 #B533AE #B57B33 #33B53A
split-complementary
#336DB5 #B53A33 #AEB533
monochromatic
#183356 #265085 #336DB5 #568CCF #86ADDD

Accessibility & contrast

On white

5.26
#336DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#336DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DB5
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DB5#FFFFFF#000000##FFFFFF
##336DB51.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C73B8
Deuteranopia (green-blind)
#3766B4
Tritanopia (blue-blind)
#007E88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336db5;
/* rgb */ color: rgb(51, 109, 181);
/* oklch */ color: oklch(53.2% 0.129 255.3);
Tailwind
colors: {
  custom: {
    50: '#7b96cb',
    500: '#336db5',
    950: '#000000',
  },
}
SCSS
$custom: #336db5;
$custom-light: #7b96cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336db5",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 181
  },
  "hsl": {
    "h": 213.231,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53231,
    "c": 0.12869,
    "h": 255.3
  },
  "luminance": 0.14977
}

Semantic roles & 50–950 ramp

primary
#336DB5
secondary
#C6A67D
accent
#9C48DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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