#335D8D#335D8D

#335D8D is a mid, moderate cyan. Relative luminance 0.105; OKLCH L 47.1% C 0.091 H 253.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#335D8D
RGBrgb(51, 93, 141)
HSLhsl(212, 47%, 38%)
HSVhsv(212, 64%, 55%)
CMYKcmyk(63.8%, 34%, 0%, 44.7%)
CIE-LABlab(38.65, 1.17, -30.94)
CIE-LCHlch(38.65, 30.96, 272.17°)
OKLaboklab(47.09% -0.0266 -0.0875)
OKLCHoklch(47.09% 0.091 253.1)
XYZxyz(10.0856, 10.4546, 26.6806)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D8D #8D6333
analogous
#338A8D #335D8D #36338D
triadic
#335D8D #8D335D #5D8D33
tetradic
#335D8D #8D338A #8D6333 #338D36
square
#335D8D #8D338A #8D6333 #338D36
split-complementary
#335D8D #8D3633 #8A8D33
monochromatic
#122233 #233F60 #335D8D #437BBA #6F9ACB

Accessibility & contrast

On white

6.79
#335D8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335D8D
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D8D#FFFFFF#000000##FFFFFF
##335D8D1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48608F
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#00686E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335d8d;
/* rgb */ color: rgb(51, 93, 141);
/* oklch */ color: oklch(47.1% 0.091 253.1);
Tailwind
colors: {
  custom: {
    50: '#748aae',
    500: '#335d8d',
    950: '#000000',
  },
}
SCSS
$custom: #335d8d;
$custom-light: #748aae;
$custom-dark: #000000;
JSON
{
  "hex": "#335d8d",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 141
  },
  "hsl": {
    "h": 212,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47093,
    "c": 0.09146,
    "h": 253.1
  },
  "luminance": 0.10456
}

Semantic roles & 50–950 ramp

primary
#335D8D
secondary
#B39069
accent
#9851D7
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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