#3C1F9D#3C1F9D

#3C1F9D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.186 H 283.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3C1F9D
RGBrgb(60, 31, 157)
HSLhsl(254, 67%, 37%)
HSVhsv(254, 80%, 62%)
CMYKcmyk(61.8%, 80.3%, 0%, 38.4%)
CIE-LABlab(24.87, 46.87, -62.90)
CIE-LCHlch(24.87, 78.45, 306.69°)
OKLaboklab(37.35% 0.0426 -0.1814)
OKLCHoklch(37.35% 0.186 283.2)
XYZxyz(8.4374, 4.3744, 32.2915)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1F9D #809D1F
analogous
#1F419D #3C1F9D #7B1F9D
triadic
#3C1F9D #9D3C1F #1F9D3C
tetradic
#3C1F9D #9D1F41 #809D1F #1F9D7B
square
#3C1F9D #9D1F41 #809D1F #1F9D7B
split-complementary
#3C1F9D #9D7B1F #419D1F
monochromatic
#150B37 #28156A #3C1F9D #5029D0 #7758DE

Accessibility & contrast

On white

11.20
#3C1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3C1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1F9D
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1F9D#FFFFFF#000000##FFFFFF
##3C1F9D1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3c1f9d;
/* rgb */ color: rgb(60, 31, 157);
/* oklch */ color: oklch(37.3% 0.186 283.2);
Tailwind
colors: {
  custom: {
    50: '#7f5fbb',
    500: '#3c1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #3c1f9d;
$custom-light: #7f5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1f9d",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 253.81,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37347,
    "c": 0.18633,
    "h": 283.2
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#3C1F9D
secondary
#A9C256
accent
#EA3EC2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3C1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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