#336FA2#336FA2

#336FA2 is a mid, moderate cyan. Relative luminance 0.147; OKLCH L 52.6% C 0.102 H 247.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#336FA2
RGBrgb(51, 111, 162)
HSLhsl(208, 52%, 42%)
HSVhsv(208, 69%, 64%)
CMYKcmyk(68.5%, 31.5%, 0%, 36.5%)
CIE-LABlab(45.19, -2.44, -33.17)
CIE-LCHlch(45.19, 33.26, 265.79°)
OKLaboklab(52.58% -0.0399 -0.0938)
OKLCHoklch(52.58% 0.102 247)
XYZxyz(13.5688, 14.6799, 36.2938)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FA2 #A26633
analogous
#33A29E #336FA2 #3337A2
triadic
#336FA2 #A2336F #6FA233
tetradic
#336FA2 #9E33A2 #A26633 #37A233
square
#336FA2 #9E33A2 #A26633 #37A233
split-complementary
#336FA2 #A23337 #A29E33
monochromatic
#162F45 #244F73 #336FA2 #4C8EC7 #7AABD5

Accessibility & contrast

On white

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

On black

3.94
#336FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##336FA2#FFFFFF#000000##FFFFFF
##336FA21.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5871A4
Deuteranopia (green-blind)
#4966A1
Tritanopia (blue-blind)
#007B81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336fa2;
/* rgb */ color: rgb(51, 111, 162);
/* oklch */ color: oklch(52.6% 0.102 247.0);
Tailwind
colors: {
  custom: {
    50: '#7798be',
    500: '#336fa2',
    950: '#000000',
  },
}
SCSS
$custom: #336fa2;
$custom-light: #7798be;
$custom-dark: #000000;
JSON
{
  "hex": "#336fa2",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 162
  },
  "hsl": {
    "h": 207.568,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52584,
    "c": 0.10193,
    "h": 247
  },
  "luminance": 0.14681
}

Semantic roles & 50–950 ramp

primary
#336FA2
secondary
#BE9573
accent
#8E4CDC
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #336FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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