#3C168D#3C168D

#3C168D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.176 H 287.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#3C168D
RGBrgb(60, 22, 141)
HSLhsl(259, 73%, 32%)
HSVhsv(259, 84%, 55%)
CMYKcmyk(57.4%, 84.4%, 0%, 44.7%)
CIE-LABlab(21.79, 46.27, -58.12)
CIE-LCHlch(21.79, 74.28, 308.52°)
OKLaboklab(34.7% 0.0535 -0.1673)
OKLCHoklch(34.7% 0.176 287.7)
XYZxyz(6.9567, 3.4572, 25.4949)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C168D #678D16
analogous
#162B8D #3C168D #78168D
triadic
#3C168D #8D3C16 #168D3C
tetradic
#3C168D #8D162B #678D16 #168D78
square
#3C168D #8D162B #678D16 #168D78
split-complementary
#3C168D #8D7816 #2B8D16
monochromatic
#0F0523 #250E58 #3C168D #531EC2 #713DE1

Accessibility & contrast

On white

12.41
#3C168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3C168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C168D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C168D#FFFFFF#000000##FFFFFF
##3C168D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#173B53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c168d;
/* rgb */ color: rgb(60, 22, 141);
/* oklch */ color: oklch(34.7% 0.176 287.7);
Tailwind
colors: {
  custom: {
    50: '#7c5ab0',
    500: '#3c168d',
    950: '#000000',
  },
}
SCSS
$custom: #3c168d;
$custom-light: #7c5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c168d",
  "rgb": {
    "r": 60,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 259.16,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34704,
    "c": 0.17564,
    "h": 287.7
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#3C168D
secondary
#97C13E
accent
#F038B5
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C168D

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

Preview Lab → · Contrast checker → · Palette generator →

#3C168D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva