#336FAF#336FAF

#336FAF is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.3% C 0.119 H 252.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#336FAF
RGBrgb(51, 111, 175)
HSLhsl(211, 55%, 44%)
HSVhsv(211, 71%, 69%)
CMYKcmyk(70.9%, 36.6%, 0%, 31.4%)
CIE-LABlab(45.86, 2.26, -39.73)
CIE-LCHlch(45.86, 39.80, 273.26°)
OKLaboklab(53.33% -0.0362 -0.113)
OKLCHoklch(53.33% 0.119 252.2)
XYZxyz(14.7847, 15.1662, 42.6973)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FAF #AF7333
analogous
#33ADAF #336FAF #3533AF
triadic
#336FAF #AF336F #6FAF33
tetradic
#336FAF #AF33AD #AF7333 #33AF35
square
#336FAF #AF33AD #AF7333 #33AF35
split-complementary
#336FAF #AF3533 #ADAF33
monochromatic
#173350 #255180 #336FAF #528ECD #82ADDB

Accessibility & contrast

On white

5.21
#336FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#336FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FAF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FAF#FFFFFF#000000##FFFFFF
##336FAF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5273B2
Deuteranopia (green-blind)
#4067AE
Tritanopia (blue-blind)
#007E87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #336faf;
/* rgb */ color: rgb(51, 111, 175);
/* oklch */ color: oklch(53.3% 0.119 252.2);
Tailwind
colors: {
  custom: {
    50: '#7a97c7',
    500: '#336faf',
    950: '#000000',
  },
}
SCSS
$custom: #336faf;
$custom-light: #7a97c7;
$custom-dark: #000000;
JSON
{
  "hex": "#336faf",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 175
  },
  "hsl": {
    "h": 210.968,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53327,
    "c": 0.11862,
    "h": 252.2
  },
  "luminance": 0.15168
}

Semantic roles & 50–950 ramp

primary
#336FAF
secondary
#C4A07A
accent
#964ADE
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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