#3C1F8A#3C1F8A

#3C1F8A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.164 H 287.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#3C1F8A
RGBrgb(60, 31, 138)
HSLhsl(256, 63%, 33%)
HSVhsv(256, 78%, 54%)
CMYKcmyk(56.5%, 77.5%, 0%, 45.9%)
CIE-LABlab(22.91, 41.25, -54.39)
CIE-LCHlch(22.91, 68.26, 307.17°)
OKLaboklab(35.39% 0.0483 -0.1565)
OKLCHoklch(35.39% 0.164 287.1)
XYZxyz(6.9395, 3.7752, 24.4029)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1F8A #6D8A1F
analogous
#1F378A #3C1F8A #711F8A
triadic
#3C1F8A #8A3C1F #1F8A3C
tetradic
#3C1F8A #8A1F37 #6D8A1F #1F8A71
square
#3C1F8A #8A1F37 #6D8A1F #1F8A71
split-complementary
#3C1F8A #8A711F #378A1F
monochromatic
#110926 #261458 #3C1F8A #522ABC #724CD7

Accessibility & contrast

On white

11.96
#3C1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3C1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1F8A
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1F8A#FFFFFF#000000##FFFFFF
##3C1F8A1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#1A3D53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3c1f8a;
/* rgb */ color: rgb(60, 31, 138);
/* oklch */ color: oklch(35.4% 0.164 287.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ead',
    500: '#3c1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #3c1f8a;
$custom-light: #7b5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1f8a",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 256.262,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35392,
    "c": 0.16379,
    "h": 287.1
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#3C1F8A
secondary
#9CBA4B
accent
#E641BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3C1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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