#335C78#335C78

#335C78 is a mid, moderate cyan. Relative luminance 0.097; OKLCH L 45.7% C 0.065 H 240.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#335C78
RGBrgb(51, 92, 120)
HSLhsl(204, 40%, 34%)
HSVhsv(204, 58%, 47%)
CMYKcmyk(57.5%, 23.3%, 0%, 52.9%)
CIE-LABlab(37.32, -5.53, -20.19)
CIE-LCHlch(37.32, 20.94, 254.67°)
OKLaboklab(45.72% -0.0324 -0.0564)
OKLCHoklch(45.72% 0.065 240.1)
XYZxyz(8.5813, 9.7134, 19.1883)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C78 #784F33
analogous
#337871 #335C78 #333978
triadic
#335C78 #78335C #5C7833
tetradic
#335C78 #713378 #784F33 #397833
square
#335C78 #713378 #784F33 #397833
split-complementary
#335C78 #783339 #787133
monochromatic
#0E1A22 #213B4D #335C78 #457DA3 #679BBE

Accessibility & contrast

On white

7.14
#335C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#335C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335C78
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C78#FFFFFF#000000##FFFFFF
##335C781.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505C79
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#006365
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335c78;
/* rgb */ color: rgb(51, 92, 120);
/* oklch */ color: oklch(45.7% 0.065 240.1);
Tailwind
colors: {
  custom: {
    50: '#708a9f',
    500: '#335c78',
    950: '#000000',
  },
}
SCSS
$custom: #335c78;
$custom-light: #708a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#335c78",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 120
  },
  "hsl": {
    "h": 204.348,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45719,
    "c": 0.06508,
    "h": 240.1
  },
  "luminance": 0.09714
}

Semantic roles & 50–950 ramp

primary
#335C78
secondary
#A67D60
accent
#8958D0
background
#F7F8F9
surface
#EDF0F2
border
#C8CBCC
text
#080B0E
muted
#7B7C7E

Preview Lab

Preview with #335C78

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

Preview Lab → · Contrast checker → · Palette generator →

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