#336BA5#336BA5

#336BA5 is a mid, moderate cyan. Relative luminance 0.139; OKLCH L 51.8% C 0.110 H 251.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#336BA5
RGBrgb(51, 107, 165)
HSLhsl(211, 53%, 42%)
HSVhsv(211, 69%, 65%)
CMYKcmyk(69.1%, 35.2%, 0%, 35.3%)
CIE-LABlab(44.14, 1.09, -36.59)
CIE-LCHlch(44.14, 36.61, 271.71°)
OKLaboklab(51.81% -0.0349 -0.1038)
OKLCHoklch(51.81% 0.11 251.4)
XYZxyz(13.4120, 13.9344, 37.5728)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BA5 #A56D33
analogous
#33A4A5 #336BA5 #3433A5
triadic
#336BA5 #A5336B #6BA533
tetradic
#336BA5 #A533A4 #A56D33 #33A534
square
#336BA5 #A533A4 #A56D33 #33A534
split-complementary
#336BA5 #A53433 #A4A533
monochromatic
#162E48 #254D76 #336BA5 #4D8AC8 #7CA8D6

Accessibility & contrast

On white

5.54
#336BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#336BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BA5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BA5#FFFFFF#000000##FFFFFF
##336BA51.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#516EA7
Deuteranopia (green-blind)
#4163A4
Tritanopia (blue-blind)
#007980
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #336ba5;
/* rgb */ color: rgb(51, 107, 165);
/* oklch */ color: oklch(51.8% 0.110 251.4);
Tailwind
colors: {
  custom: {
    50: '#7895c0',
    500: '#336ba5',
    950: '#000000',
  },
}
SCSS
$custom: #336ba5;
$custom-light: #7895c0;
$custom-dark: #000000;
JSON
{
  "hex": "#336ba5",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 165
  },
  "hsl": {
    "h": 210.526,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51806,
    "c": 0.10954,
    "h": 251.4
  },
  "luminance": 0.13936
}

Semantic roles & 50–950 ramp

primary
#336BA5
secondary
#BF9B75
accent
#954CDC
background
#F7F9FB
surface
#EEF1F7
border
#C9CBD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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