#3C1FB4#3C1FB4

#3C1FB4 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.8% C 0.213 H 279.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#3C1FB4
RGBrgb(60, 31, 180)
HSLhsl(252, 71%, 41%)
HSVhsv(252, 83%, 71%)
CMYKcmyk(66.7%, 82.8%, 0%, 29.4%)
CIE-LABlab(27.39, 53.55, -72.62)
CIE-LCHlch(27.39, 90.23, 306.40°)
OKLaboklab(39.83% 0.0353 -0.2097)
OKLCHoklch(39.83% 0.213 279.5)
XYZxyz(10.5891, 5.2350, 43.6236)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1FB4 #97B41F
analogous
#1F4DB4 #3C1FB4 #871FB4
triadic
#3C1FB4 #B43C1F #1FB43C
tetradic
#3C1FB4 #B41F4D #97B41F #1FB487
square
#3C1FB4 #B41F4D #97B41F #1FB487
split-complementary
#3C1FB4 #B4871F #4DB41F
monochromatic
#190D4C #2B1680 #3C1FB4 #5534DC #8168E5

Accessibility & contrast

On white

10.26
#3C1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3C1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1FB4
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1FB4#FFFFFF#000000##FFFFFF
##3C1FB41.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003BB1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3c1fb4;
/* rgb */ color: rgb(60, 31, 180);
/* oklch */ color: oklch(39.8% 0.213 279.5);
Tailwind
colors: {
  custom: {
    50: '#8361cc',
    500: '#3c1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #3c1fb4;
$custom-light: #8361cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1fb4",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 251.678,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.21262,
    "h": 279.5
  },
  "luminance": 0.05236
}

Semantic roles & 50–950 ramp

primary
#3C1FB4
secondary
#B7CB64
accent
#ED3ACB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3C1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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