#335170#335170

#335170 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.6% C 0.063 H 250.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#335170
RGBrgb(51, 81, 112)
HSLhsl(210, 37%, 32%)
HSVhsv(210, 54%, 44%)
CMYKcmyk(54.5%, 27.7%, 0%, 56.1%)
CIE-LABlab(33.47, -1.38, -21.20)
CIE-LCHlch(33.47, 21.25, 266.27°)
OKLaboklab(42.56% -0.0213 -0.0594)
OKLCHoklch(42.56% 0.063 250.3)
XYZxyz(7.2313, 7.7580, 16.4425)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335170 #705233
analogous
#337070 #335170 #343370
triadic
#335170 #703351 #517033
tetradic
#335170 #703370 #705233 #337034
square
#335170 #703370 #705233 #337034
split-complementary
#335170 #703433 #707033
monochromatic
#0D141C #203346 #335170 #466F9A #658EB9

Accessibility & contrast

On white

8.23
#335170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#335170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335170
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335170#FFFFFF#000000##FFFFFF
##3351701.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445271
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#13585C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335170;
/* rgb */ color: rgb(51, 81, 112);
/* oklch */ color: oklch(42.6% 0.063 250.3);
Tailwind
colors: {
  custom: {
    50: '#6f8199',
    500: '#335170',
    950: '#000000',
  },
}
SCSS
$custom: #335170;
$custom-light: #6f8199;
$custom-dark: #000000;
JSON
{
  "hex": "#335170",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 112
  },
  "hsl": {
    "h": 210.492,
    "s": 37.423,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42561,
    "c": 0.06308,
    "h": 250.3
  },
  "luminance": 0.07759
}

Semantic roles & 50–950 ramp

primary
#335170
secondary
#A1805E
accent
#955ACD
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335170

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

Preview Lab → · Contrast checker → · Palette generator →

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