#3C1988#3C1988

#3C1988 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.167 H 288.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#3C1988
RGBrgb(60, 25, 136)
HSLhsl(259, 69%, 32%)
HSVhsv(259, 82%, 53%)
CMYKcmyk(55.9%, 81.6%, 0%, 46.7%)
CIE-LABlab(21.70, 43.56, -55.14)
CIE-LCHlch(21.70, 70.27, 308.31°)
OKLaboklab(34.48% 0.0533 -0.1586)
OKLCHoklch(34.48% 0.167 288.6)
XYZxyz(6.6537, 3.4332, 23.5998)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1988 #658819
analogous
#192E88 #3C1988 #741988
triadic
#3C1988 #883C19 #19883C
tetradic
#3C1988 #88192E #658819 #198874
square
#3C1988 #88192E #658819 #198874
split-complementary
#3C1988 #887419 #2E8819
monochromatic
#0E0621 #250F54 #3C1988 #5323BC #7140DC

Accessibility & contrast

On white

12.45
#3C1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1988
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1988#FFFFFF#000000##FFFFFF
##3C19881.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#1D3A51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c1988;
/* rgb */ color: rgb(60, 25, 136);
/* oklch */ color: oklch(34.5% 0.167 288.6);
Tailwind
colors: {
  custom: {
    50: '#7b5bac',
    500: '#3c1988',
    950: '#000000',
  },
}
SCSS
$custom: #3c1988;
$custom-light: #7b5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1988",
  "rgb": {
    "r": 60,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 258.919,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34484,
    "c": 0.16736,
    "h": 288.6
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#3C1988
secondary
#95BB41
accent
#EC3CB4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1988

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

Preview Lab → · Contrast checker → · Palette generator →

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