#3D1FA1#3D1FA1

#3D1FA1 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.191 H 283.0°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3D1FA1
RGBrgb(61, 31, 161)
HSLhsl(254, 68%, 38%)
HSVhsv(254, 81%, 63%)
CMYKcmyk(62.1%, 80.7%, 0%, 36.9%)
CIE-LABlab(25.40, 48.15, -64.48)
CIE-LCHlch(25.40, 80.47, 306.75°)
OKLaboklab(37.86% 0.0429 -0.1859)
OKLCHoklch(37.86% 0.191 283)
XYZxyz(8.8455, 4.5447, 34.1224)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1FA1 #83A11F
analogous
#1F42A1 #3D1FA1 #7E1FA1
triadic
#3D1FA1 #A13D1F #1FA13D
tetradic
#3D1FA1 #A11F42 #83A11F #1FA17E
square
#3D1FA1 #A11F42 #83A11F #1FA17E
split-complementary
#3D1FA1 #A17E1F #42A11F
monochromatic
#160B3A #2A156E #3D1FA1 #5029D4 #7A5BDF

Accessibility & contrast

On white

11.00
#3D1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3D1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1FA1
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1FA1#FFFFFF#000000##FFFFFF
##3D1FA11.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d1fa1;
/* rgb */ color: rgb(61, 31, 161);
/* oklch */ color: oklch(37.9% 0.191 283.0);
Tailwind
colors: {
  custom: {
    50: '#8060be',
    500: '#3d1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #3d1fa1;
$custom-light: #8060be;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1fa1",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 253.846,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37861,
    "c": 0.19082,
    "h": 283
  },
  "luminance": 0.04545
}

Semantic roles & 50–950 ramp

primary
#3D1FA1
secondary
#ABC458
accent
#EB3DC3
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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