#335478#335478

#335478 is a dark, moderate cyan. Relative luminance 0.084; OKLCH L 43.7% C 0.071 H 251.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#335478
RGBrgb(51, 84, 120)
HSLhsl(211, 40%, 34%)
HSVhsv(211, 58%, 47%)
CMYKcmyk(57.5%, 30%, 0%, 52.9%)
CIE-LABlab(34.80, -0.54, -24.11)
CIE-LCHlch(34.80, 24.12, 268.71°)
OKLaboklab(43.73% -0.0224 -0.0678)
OKLCHoklch(43.73% 0.071 251.7)
XYZxyz(7.9245, 8.3999, 18.9694)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335478 #785733
analogous
#337678 #335478 #343378
triadic
#335478 #783354 #547833
tetradic
#335478 #783376 #785733 #337834
square
#335478 #783376 #785733 #337834
split-complementary
#335478 #783433 #767833
monochromatic
#0E1822 #21364D #335478 #4572A3 #6791BE

Accessibility & contrast

On white

7.84
#335478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#335478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335478
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335478#FFFFFF#000000##FFFFFF
##3354781.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45567A
Deuteranopia (green-blind)
#3C4F77
Tritanopia (blue-blind)
#045C61
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335478;
/* rgb */ color: rgb(51, 84, 120);
/* oklch */ color: oklch(43.7% 0.071 251.7);
Tailwind
colors: {
  custom: {
    50: '#70839f',
    500: '#335478',
    950: '#000000',
  },
}
SCSS
$custom: #335478;
$custom-light: #70839f;
$custom-dark: #000000;
JSON
{
  "hex": "#335478",
  "rgb": {
    "r": 51,
    "g": 84,
    "b": 120
  },
  "hsl": {
    "h": 211.304,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43732,
    "c": 0.07138,
    "h": 251.7
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#335478
secondary
#A68560
accent
#9758D0
background
#F7F8F9
surface
#EDEFF2
border
#C8CACC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335478

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

Preview Lab → · Contrast checker → · Palette generator →

#335478 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva