#336CAF#336CAF

#336CAF is a mid, vivid cyan. Relative luminance 0.145; OKLCH L 52.6% C 0.122 H 254.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#336CAF
RGBrgb(51, 108, 175)
HSLhsl(212, 55%, 44%)
HSVhsv(212, 71%, 69%)
CMYKcmyk(70.9%, 38.3%, 0%, 31.4%)
CIE-LABlab(44.97, 4.12, -41.14)
CIE-LCHlch(44.97, 41.35, 275.72°)
OKLaboklab(52.63% -0.0332 -0.1171)
OKLCHoklch(52.63% 0.122 254.2)
XYZxyz(14.4628, 14.5225, 42.5900)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CAF #AF7633
analogous
#33AAAF #336CAF #3833AF
triadic
#336CAF #AF336C #6CAF33
tetradic
#336CAF #AF33AA #AF7633 #33AF38
square
#336CAF #AF33AA #AF7633 #33AF38
split-complementary
#336CAF #AF3833 #AAAF33
monochromatic
#173250 #254F80 #336CAF #528BCD #82ABDB

Accessibility & contrast

On white

5.38
#336CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#336CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CAF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CAF#FFFFFF#000000##FFFFFF
##336CAF1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D71B2
Deuteranopia (green-blind)
#3B65AE
Tritanopia (blue-blind)
#007C85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336caf;
/* rgb */ color: rgb(51, 108, 175);
/* oklch */ color: oklch(52.6% 0.122 254.2);
Tailwind
colors: {
  custom: {
    50: '#7a95c7',
    500: '#336caf',
    950: '#000000',
  },
}
SCSS
$custom: #336caf;
$custom-light: #7a95c7;
$custom-dark: #000000;
JSON
{
  "hex": "#336caf",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 175
  },
  "hsl": {
    "h": 212.419,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52633,
    "c": 0.12176,
    "h": 254.2
  },
  "luminance": 0.14524
}

Semantic roles & 50–950 ramp

primary
#336CAF
secondary
#C4A27A
accent
#9A4ADE
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #336CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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