#336DB4#336DB4

#336DB4 is a mid, vivid cyan. Relative luminance 0.149; OKLCH L 53.2% C 0.127 H 255.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#336DB4
RGBrgb(51, 109, 180)
HSLhsl(213, 56%, 45%)
HSVhsv(213, 72%, 71%)
CMYKcmyk(71.7%, 39.4%, 0%, 29.4%)
CIE-LABlab(45.54, 5.34, -43.15)
CIE-LCHlch(45.54, 43.48, 277.05°)
OKLaboklab(53.17% -0.033 -0.123)
OKLCHoklch(53.17% 0.127 255)
XYZxyz(15.0691, 14.9347, 45.2597)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336DB4 #B47A33
analogous
#33ADB4 #336DB4 #3933B4
triadic
#336DB4 #B4336D #6DB433
tetradic
#336DB4 #B433AD #B47A33 #33B439
square
#336DB4 #B433AD #B47A33 #33B439
split-complementary
#336DB4 #B43933 #ADB433
monochromatic
#183355 #255084 #336DB4 #558CCF #85ACDC

Accessibility & contrast

On white

5.27
#336DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#336DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336DB4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336DB4#FFFFFF#000000##FFFFFF
##336DB41.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C72B7
Deuteranopia (green-blind)
#3866B3
Tritanopia (blue-blind)
#007E88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336db4;
/* rgb */ color: rgb(51, 109, 180);
/* oklch */ color: oklch(53.2% 0.127 255.0);
Tailwind
colors: {
  custom: {
    50: '#7b96cb',
    500: '#336db4',
    950: '#000000',
  },
}
SCSS
$custom: #336db4;
$custom-light: #7b96cb;
$custom-dark: #000000;
JSON
{
  "hex": "#336db4",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 180
  },
  "hsl": {
    "h": 213.023,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53169,
    "c": 0.12735,
    "h": 255
  },
  "luminance": 0.14936
}

Semantic roles & 50–950 ramp

primary
#336DB4
secondary
#C6A57D
accent
#9B49DF
background
#F8F9FC
surface
#EFF1F8
border
#CACBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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