#336AA1#336AA1

#336AA1 is a mid, moderate cyan. Relative luminance 0.136; OKLCH L 51.3% C 0.105 H 250.6°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#336AA1
RGBrgb(51, 106, 161)
HSLhsl(210, 52%, 42%)
HSVhsv(210, 68%, 63%)
CMYKcmyk(68.3%, 34.2%, 0%, 36.9%)
CIE-LABlab(43.63, 0.26, -35.04)
CIE-LCHlch(43.63, 35.04, 270.42°)
OKLaboklab(51.34% -0.035 -0.0993)
OKLCHoklch(51.34% 0.105 250.6)
XYZxyz(12.9499, 13.5837, 35.6508)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AA1 #A16A33
analogous
#33A1A1 #336AA1 #3333A1
triadic
#336AA1 #A1336A #6AA133
tetradic
#336AA1 #A133A1 #A16A33 #33A133
square
#336AA1 #A133A1 #A16A33 #33A133
split-complementary
#336AA1 #A13333 #A1A133
monochromatic
#162D44 #244B73 #336AA1 #4B89C6 #7AA7D5

Accessibility & contrast

On white

5.65
#336AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#336AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AA1
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AA1#FFFFFF#000000##FFFFFF
##336AA11.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526DA3
Deuteranopia (green-blind)
#4262A0
Tritanopia (blue-blind)
#00777E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #336aa1;
/* rgb */ color: rgb(51, 106, 161);
/* oklch */ color: oklch(51.3% 0.105 250.6);
Tailwind
colors: {
  custom: {
    50: '#7794bd',
    500: '#336aa1',
    950: '#000000',
  },
}
SCSS
$custom: #336aa1;
$custom-light: #7794bd;
$custom-dark: #000000;
JSON
{
  "hex": "#336aa1",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 161
  },
  "hsl": {
    "h": 210,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51339,
    "c": 0.10528,
    "h": 250.6
  },
  "luminance": 0.13585
}

Semantic roles & 50–950 ramp

primary
#336AA1
secondary
#BD9872
accent
#944CDB
background
#F7F9FB
surface
#EEF1F6
border
#C9CBD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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