#335D8C#335D8C

#335D8C is a mid, moderate cyan. Relative luminance 0.104; OKLCH L 47.0% C 0.090 H 252.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#335D8C
RGBrgb(51, 93, 140)
HSLhsl(212, 47%, 37%)
HSVhsv(212, 64%, 55%)
CMYKcmyk(63.6%, 33.6%, 0%, 45.1%)
CIE-LABlab(38.59, 0.81, -30.41)
CIE-LCHlch(38.59, 30.42, 271.53°)
OKLaboklab(47.04% -0.0269 -0.086)
OKLCHoklch(47.04% 0.09 252.6)
XYZxyz(10.0115, 10.4250, 26.2905)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D8C #8C6233
analogous
#338A8C #335D8C #35338C
triadic
#335D8C #8C335D #5D8C33
tetradic
#335D8C #8C338A #8C6233 #338C35
square
#335D8C #8C338A #8C6233 #338C35
split-complementary
#335D8C #8C3533 #8A8C33
monochromatic
#122132 #233F5F #335D8C #437BB9 #6F9ACB

Accessibility & contrast

On white

6.81
#335D8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#335D8C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335D8C
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D8C#FFFFFF#000000##FFFFFF
##335D8C1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49608E
Deuteranopia (green-blind)
#3D578B
Tritanopia (blue-blind)
#00686E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335d8c;
/* rgb */ color: rgb(51, 93, 140);
/* oklch */ color: oklch(47.0% 0.090 252.6);
Tailwind
colors: {
  custom: {
    50: '#738aae',
    500: '#335d8c',
    950: '#000000',
  },
}
SCSS
$custom: #335d8c;
$custom-light: #738aae;
$custom-dark: #000000;
JSON
{
  "hex": "#335d8c",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 140
  },
  "hsl": {
    "h": 211.685,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47036,
    "c": 0.09009,
    "h": 252.6
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#335D8C
secondary
#B28F68
accent
#9852D6
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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