#335C8C#335C8C

#335C8C is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.8% C 0.091 H 253.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#335C8C
RGBrgb(51, 92, 140)
HSLhsl(212, 47%, 37%)
HSVhsv(212, 64%, 55%)
CMYKcmyk(63.6%, 34.3%, 0%, 45.1%)
CIE-LABlab(38.29, 1.44, -30.89)
CIE-LCHlch(38.29, 30.93, 272.68°)
OKLaboklab(46.8% -0.0258 -0.0874)
OKLCHoklch(46.8% 0.091 253.6)
XYZxyz(9.9243, 10.2506, 26.2614)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C8C #8C6333
analogous
#33888C #335C8C #37338C
triadic
#335C8C #8C335C #5C8C33
tetradic
#335C8C #8C3388 #8C6333 #338C37
square
#335C8C #8C3388 #8C6333 #338C37
split-complementary
#335C8C #8C3733 #888C33
monochromatic
#122132 #233F5F #335C8C #4379B9 #6F99CB

Accessibility & contrast

On white

6.88
#335C8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#335C8C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335C8C
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C8C#FFFFFF#000000##FFFFFF
##335C8C1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485F8E
Deuteranopia (green-blind)
#3C568B
Tritanopia (blue-blind)
#00676D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335c8c;
/* rgb */ color: rgb(51, 92, 140);
/* oklch */ color: oklch(46.8% 0.091 253.6);
Tailwind
colors: {
  custom: {
    50: '#7389ae',
    500: '#335c8c',
    950: '#000000',
  },
}
SCSS
$custom: #335c8c;
$custom-light: #7389ae;
$custom-dark: #000000;
JSON
{
  "hex": "#335c8c",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 140
  },
  "hsl": {
    "h": 212.36,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46796,
    "c": 0.09112,
    "h": 253.6
  },
  "luminance": 0.10252
}

Semantic roles & 50–950 ramp

primary
#335C8C
secondary
#B29068
accent
#9952D6
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335C8C

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

Preview Lab → · Contrast checker → · Palette generator →

#335C8C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva