#336FA5#336FA5

#336FA5 is a mid, moderate cyan. Relative luminance 0.148; OKLCH L 52.8% C 0.106 H 248.4°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#336FA5
RGBrgb(51, 111, 165)
HSLhsl(208, 53%, 42%)
HSVhsv(208, 69%, 65%)
CMYKcmyk(69.1%, 32.7%, 0%, 35.3%)
CIE-LABlab(45.34, -1.37, -34.70)
CIE-LCHlch(45.34, 34.72, 267.75°)
OKLaboklab(52.75% -0.039 -0.0982)
OKLCHoklch(52.75% 0.106 248.4)
XYZxyz(13.8387, 14.7878, 37.7150)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FA5 #A56933
analogous
#33A5A2 #336FA5 #3336A5
triadic
#336FA5 #A5336F #6FA533
tetradic
#336FA5 #A233A5 #A56933 #36A533
square
#336FA5 #A233A5 #A56933 #36A533
split-complementary
#336FA5 #A53336 #A5A233
monochromatic
#163048 #255076 #336FA5 #4D8EC8 #7CACD6

Accessibility & contrast

On white

5.31
#336FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#336FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FA5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FA5#FFFFFF#000000##FFFFFF
##336FA51.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5771A7
Deuteranopia (green-blind)
#4766A4
Tritanopia (blue-blind)
#007C82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336fa5;
/* rgb */ color: rgb(51, 111, 165);
/* oklch */ color: oklch(52.8% 0.106 248.4);
Tailwind
colors: {
  custom: {
    50: '#7898c0',
    500: '#336fa5',
    950: '#000000',
  },
}
SCSS
$custom: #336fa5;
$custom-light: #7898c0;
$custom-dark: #000000;
JSON
{
  "hex": "#336fa5",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 165
  },
  "hsl": {
    "h": 208.421,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5275,
    "c": 0.1057,
    "h": 248.4
  },
  "luminance": 0.14789
}

Semantic roles & 50–950 ramp

primary
#336FA5
secondary
#BF9875
accent
#904CDC
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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