#335173#335173

#335173 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.7% C 0.067 H 252.5°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#335173
RGBrgb(51, 81, 115)
HSLhsl(212, 39%, 33%)
HSVhsv(212, 56%, 45%)
CMYKcmyk(55.7%, 29.6%, 0%, 54.9%)
CIE-LABlab(33.62, -0.36, -22.85)
CIE-LCHlch(33.62, 22.86, 269.11°)
OKLaboklab(42.72% -0.0203 -0.0641)
OKLCHoklch(42.72% 0.067 252.5)
XYZxyz(7.4011, 7.8259, 17.3369)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335173 #735533
analogous
#337173 #335173 #353373
triadic
#335173 #733351 #517333
tetradic
#335173 #733371 #735533 #337335
square
#335173 #733371 #735533 #337335
split-complementary
#335173 #733533 #717333
monochromatic
#0D151E #203349 #335173 #466F9D #658EBB

Accessibility & contrast

On white

8.19
#335173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#335173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335173
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335173#FFFFFF#000000##FFFFFF
##3351731.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435375
Deuteranopia (green-blind)
#3B4C72
Tritanopia (blue-blind)
#0F595D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335173;
/* rgb */ color: rgb(51, 81, 115);
/* oklch */ color: oklch(42.7% 0.067 252.5);
Tailwind
colors: {
  custom: {
    50: '#6f819b',
    500: '#335173',
    950: '#000000',
  },
}
SCSS
$custom: #335173;
$custom-light: #6f819b;
$custom-dark: #000000;
JSON
{
  "hex": "#335173",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 115
  },
  "hsl": {
    "h": 211.875,
    "s": 38.554,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42722,
    "c": 0.06727,
    "h": 252.5
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#335173
secondary
#A3835F
accent
#9859CE
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335173

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

Preview Lab → · Contrast checker → · Palette generator →

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