#3C168F#3C168F

#3C168F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.178 H 287.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#3C168F
RGBrgb(60, 22, 143)
HSLhsl(259, 73%, 32%)
HSVhsv(259, 85%, 56%)
CMYKcmyk(58%, 84.6%, 0%, 43.9%)
CIE-LABlab(22.01, 46.82, -59.00)
CIE-LCHlch(22.01, 75.32, 308.43°)
OKLaboklab(34.92% 0.0527 -0.1699)
OKLCHoklch(34.92% 0.178 287.2)
XYZxyz(7.1068, 3.5173, 26.2857)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C168F #698F16
analogous
#162D8F #3C168F #79168F
triadic
#3C168F #8F3C16 #168F3C
tetradic
#3C168F #8F162D #698F16 #168F79
square
#3C168F #8F162D #698F16 #168F79
split-complementary
#3C168F #8F7916 #2D8F16
monochromatic
#0F0625 #260E5A #3C168F #521EC4 #713EE1

Accessibility & contrast

On white

12.33
#3C168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3C168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C168F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C168F#FFFFFF#000000##FFFFFF
##3C168F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#143C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c168f;
/* rgb */ color: rgb(60, 22, 143);
/* oklch */ color: oklch(34.9% 0.178 287.2);
Tailwind
colors: {
  custom: {
    50: '#7d5ab1',
    500: '#3c168f',
    950: '#000000',
  },
}
SCSS
$custom: #3c168f;
$custom-light: #7d5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c168f",
  "rgb": {
    "r": 60,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 258.843,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34918,
    "c": 0.17789,
    "h": 287.2
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#3C168F
secondary
#99C13F
accent
#F038B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C168F

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

Preview Lab → · Contrast checker → · Palette generator →

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