#336FA1#336FA1

#336FA1 is a mid, moderate cyan. Relative luminance 0.146; OKLCH L 52.5% C 0.101 H 246.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#336FA1
RGBrgb(51, 111, 161)
HSLhsl(207, 52%, 42%)
HSVhsv(207, 68%, 63%)
CMYKcmyk(68.3%, 31.1%, 0%, 36.9%)
CIE-LABlab(45.14, -2.80, -32.66)
CIE-LCHlch(45.14, 32.78, 265.10°)
OKLaboklab(52.53% -0.0402 -0.0923)
OKLCHoklch(52.53% 0.101 246.5)
XYZxyz(13.4803, 14.6445, 35.8275)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FA1 #A16533
analogous
#33A19C #336FA1 #3338A1
triadic
#336FA1 #A1336F #6FA133
tetradic
#336FA1 #9C33A1 #A16533 #38A133
square
#336FA1 #9C33A1 #A16533 #38A133
split-complementary
#336FA1 #A13338 #A19C33
monochromatic
#162F44 #244F73 #336FA1 #4B8EC6 #7AABD5

Accessibility & contrast

On white

5.34
#336FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336FA1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FA1#FFFFFF#000000##FFFFFF
##336FA11.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5971A3
Deuteranopia (green-blind)
#4A66A0
Tritanopia (blue-blind)
#007B81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336fa1;
/* rgb */ color: rgb(51, 111, 161);
/* oklch */ color: oklch(52.5% 0.101 246.5);
Tailwind
colors: {
  custom: {
    50: '#7798bd',
    500: '#336fa1',
    950: '#000000',
  },
}
SCSS
$custom: #336fa1;
$custom-light: #7798bd;
$custom-dark: #000000;
JSON
{
  "hex": "#336fa1",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 161
  },
  "hsl": {
    "h": 207.273,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52529,
    "c": 0.10069,
    "h": 246.5
  },
  "luminance": 0.14646
}

Semantic roles & 50–950 ramp

primary
#336FA1
secondary
#BD9472
accent
#8D4CDB
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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