#3C1C88#3C1C88

#3C1C88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.164 H 288.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3C1C88
RGBrgb(60, 28, 136)
HSLhsl(258, 66%, 32%)
HSVhsv(258, 79%, 53%)
CMYKcmyk(55.9%, 79.4%, 0%, 46.7%)
CIE-LABlab(22.19, 42.15, -54.33)
CIE-LCHlch(22.19, 68.77, 307.81°)
OKLaboklab(34.82% 0.0512 -0.1563)
OKLCHoklch(34.82% 0.164 288.1)
XYZxyz(6.7214, 3.5684, 23.6224)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1C88 #68881C
analogous
#1C3288 #3C1C88 #721C88
triadic
#3C1C88 #883C1C #1C883C
tetradic
#3C1C88 #881C32 #68881C #1C8872
square
#3C1C88 #881C32 #68881C #1C8872
split-complementary
#3C1C88 #88721C #32881C
monochromatic
#0F0722 #261255 #3C1C88 #5226BB #7146D9

Accessibility & contrast

On white

12.25
#3C1C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3C1C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1C88
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1C88#FFFFFF#000000##FFFFFF
##3C1C881.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#1C3B51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c1c88;
/* rgb */ color: rgb(60, 28, 136);
/* oklch */ color: oklch(34.8% 0.164 288.1);
Tailwind
colors: {
  custom: {
    50: '#7b5dac',
    500: '#3c1c88',
    950: '#000000',
  },
}
SCSS
$custom: #3c1c88;
$custom-light: #7b5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1c88",
  "rgb": {
    "r": 60,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 257.778,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34824,
    "c": 0.16448,
    "h": 288.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#3C1C88
secondary
#98BA45
accent
#E93FB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1C88

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

Preview Lab → · Contrast checker → · Palette generator →

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