#335978#335978

#335978 is a dark, moderate cyan. Relative luminance 0.092; OKLCH L 45.0% C 0.067 H 244.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#335978
RGBrgb(51, 89, 120)
HSLhsl(207, 40%, 34%)
HSVhsv(207, 58%, 47%)
CMYKcmyk(57.5%, 25.8%, 0%, 52.9%)
CIE-LABlab(36.37, -3.68, -21.66)
CIE-LCHlch(36.37, 21.98, 260.35°)
OKLaboklab(44.97% -0.0287 -0.0607)
OKLCHoklch(44.97% 0.067 244.7)
XYZxyz(8.3266, 9.2039, 19.1034)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335978 #785233
analogous
#337874 #335978 #333678
triadic
#335978 #783359 #597833
tetradic
#335978 #743378 #785233 #367833
square
#335978 #743378 #785233 #367833
split-complementary
#335978 #783336 #787433
monochromatic
#0E1922 #21394D #335978 #4579A3 #6797BE

Accessibility & contrast

On white

7.39
#335978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#335978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335978
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335978#FFFFFF#000000##FFFFFF
##3359781.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5979
Deuteranopia (green-blind)
#435277
Tritanopia (blue-blind)
#016064
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #335978;
/* rgb */ color: rgb(51, 89, 120);
/* oklch */ color: oklch(45.0% 0.067 244.7);
Tailwind
colors: {
  custom: {
    50: '#70879f',
    500: '#335978',
    950: '#000000',
  },
}
SCSS
$custom: #335978;
$custom-light: #70879f;
$custom-dark: #000000;
JSON
{
  "hex": "#335978",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 120
  },
  "hsl": {
    "h": 206.957,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44969,
    "c": 0.06711,
    "h": 244.7
  },
  "luminance": 0.09205
}

Semantic roles & 50–950 ramp

primary
#335978
secondary
#A68060
accent
#8E58D0
background
#F7F8F9
surface
#EDEFF2
border
#C8CACC
text
#080B0E
muted
#7B7C7E

Preview Lab

Preview with #335978

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

Preview Lab → · Contrast checker → · Palette generator →

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