#335172#335172

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

Color values

HEX#335172
RGBrgb(51, 81, 114)
HSLhsl(211, 38%, 32%)
HSVhsv(211, 55%, 45%)
CMYKcmyk(55.3%, 28.9%, 0%, 55.3%)
CIE-LABlab(33.57, -0.70, -22.31)
CIE-LCHlch(33.57, 22.32, 268.20°)
OKLaboklab(42.67% -0.0206 -0.0625)
OKLCHoklch(42.67% 0.066 251.8)
XYZxyz(7.3439, 7.8030, 17.0355)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335172 #725433
analogous
#337072 #335172 #353372
triadic
#335172 #723351 #517233
tetradic
#335172 #723370 #725433 #337235
square
#335172 #723370 #725433 #337235
split-complementary
#335172 #723533 #707233
monochromatic
#0D151D #203348 #335172 #466F9C #658EBA

Accessibility & contrast

On white

8.20
#335172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#335172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335172
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335172#FFFFFF#000000##FFFFFF
##3351721.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445273
Deuteranopia (green-blind)
#3C4C71
Tritanopia (blue-blind)
#10595C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335172;
/* rgb */ color: rgb(51, 81, 114);
/* oklch */ color: oklch(42.7% 0.066 251.8);
Tailwind
colors: {
  custom: {
    50: '#6f819a',
    500: '#335172',
    950: '#000000',
  },
}
SCSS
$custom: #335172;
$custom-light: #6f819a;
$custom-dark: #000000;
JSON
{
  "hex": "#335172",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 211.429,
    "s": 38.182,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42668,
    "c": 0.06586,
    "h": 251.8
  },
  "luminance": 0.07804
}

Semantic roles & 50–950 ramp

primary
#335172
secondary
#A2825F
accent
#975ACE
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335172

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

Preview Lab → · Contrast checker → · Palette generator →

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