#336ABC#336ABC

#336ABC is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.0% C 0.142 H 258.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#336ABC
RGBrgb(51, 106, 188)
HSLhsl(216, 57%, 47%)
HSVhsv(216, 73%, 74%)
CMYKcmyk(72.9%, 43.6%, 0%, 26.3%)
CIE-LABlab(45.14, 10.19, -48.45)
CIE-LCHlch(45.14, 49.51, 281.88°)
OKLaboklab(53% -0.0285 -0.1386)
OKLCHoklch(53% 0.142 258.4)
XYZxyz(15.5931, 14.6410, 49.5714)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336ABC #BC8533
analogous
#33AFBC #336ABC #4033BC
triadic
#336ABC #BC336A #6ABC33
tetradic
#336ABC #BC33AF #BC8533 #33BC40
square
#336ABC #BC33AF #BC8533 #33BC40
split-complementary
#336ABC #BC4033 #AFBC33
monochromatic
#19345C #264F8C #336ABC #5A8AD2 #8AACDF

Accessibility & contrast

On white

5.35
#336ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#336ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336ABC
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336ABC#FFFFFF#000000##FFFFFF
##336ABC1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4272BF
Deuteranopia (green-blind)
#2865BA
Tritanopia (blue-blind)
#007D8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336abc;
/* rgb */ color: rgb(51, 106, 188);
/* oklch */ color: oklch(53.0% 0.142 258.4);
Tailwind
colors: {
  custom: {
    50: '#7c94d1',
    500: '#336abc',
    950: '#000000',
  },
}
SCSS
$custom: #336abc;
$custom-light: #7c94d1;
$custom-dark: #000000;
JSON
{
  "hex": "#336abc",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 188
  },
  "hsl": {
    "h": 215.912,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.53004,
    "c": 0.14151,
    "h": 258.4
  },
  "luminance": 0.14643
}

Semantic roles & 50–950 ramp

primary
#336ABC
secondary
#C9AC81
accent
#A347E1
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #336ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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