#335C8D#335C8D

#335C8D is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.9% C 0.092 H 254.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#335C8D
RGBrgb(51, 92, 141)
HSLhsl(213, 47%, 38%)
HSVhsv(213, 64%, 55%)
CMYKcmyk(63.8%, 34.8%, 0%, 44.7%)
CIE-LABlab(38.34, 1.80, -31.42)
CIE-LCHlch(38.34, 31.47, 273.28°)
OKLaboklab(46.85% -0.0255 -0.0889)
OKLCHoklch(46.85% 0.092 254)
XYZxyz(9.9984, 10.2803, 26.6515)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C8D #8D6433
analogous
#33898D #335C8D #37338D
triadic
#335C8D #8D335C #5C8D33
tetradic
#335C8D #8D3389 #8D6433 #338D37
square
#335C8D #8D3389 #8D6433 #338D37
split-complementary
#335C8D #8D3733 #898D33
monochromatic
#122133 #233F60 #335C8D #4379BA #6F99CB

Accessibility & contrast

On white

6.87
#335C8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#335C8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335C8D
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C8D#FFFFFF#000000##FFFFFF
##335C8D1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475F8F
Deuteranopia (green-blind)
#3B568C
Tritanopia (blue-blind)
#00676E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335c8d;
/* rgb */ color: rgb(51, 92, 141);
/* oklch */ color: oklch(46.9% 0.092 254.0);
Tailwind
colors: {
  custom: {
    50: '#7489ae',
    500: '#335c8d',
    950: '#000000',
  },
}
SCSS
$custom: #335c8d;
$custom-light: #7489ae;
$custom-dark: #000000;
JSON
{
  "hex": "#335c8d",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 141
  },
  "hsl": {
    "h": 212.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46854,
    "c": 0.09249,
    "h": 254
  },
  "luminance": 0.10281
}

Semantic roles & 50–950 ramp

primary
#335C8D
secondary
#B39169
accent
#9A51D7
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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