#3D1FA5#3D1FA5

#3D1FA5 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.195 H 282.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#3D1FA5
RGBrgb(61, 31, 165)
HSLhsl(253, 68%, 38%)
HSVhsv(253, 81%, 65%)
CMYKcmyk(63%, 81.2%, 0%, 35.3%)
CIE-LABlab(25.83, 49.32, -66.19)
CIE-LCHlch(25.83, 82.55, 306.69°)
OKLaboklab(38.29% 0.0416 -0.1909)
OKLCHoklch(38.29% 0.195 282.3)
XYZxyz(9.2039, 4.6880, 36.0099)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1FA5 #87A51F
analogous
#1F44A5 #3D1FA5 #801FA5
triadic
#3D1FA5 #A53D1F #1FA53D
tetradic
#3D1FA5 #A51F44 #87A51F #1FA580
square
#3D1FA5 #A51F44 #87A51F #1FA580
split-complementary
#3D1FA5 #A5801F #44A51F
monochromatic
#170C3E #2A1571 #3D1FA5 #512AD7 #7B5EE1

Accessibility & contrast

On white

10.84
#3D1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3D1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1FA5
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1FA5#FFFFFF#000000##FFFFFF
##3D1FA51.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d1fa5;
/* rgb */ color: rgb(61, 31, 165);
/* oklch */ color: oklch(38.3% 0.195 282.3);
Tailwind
colors: {
  custom: {
    50: '#8160c1',
    500: '#3d1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #3d1fa5;
$custom-light: #8160c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1fa5",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 253.433,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38287,
    "c": 0.19542,
    "h": 282.3
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#3D1FA5
secondary
#ADC55B
accent
#EB3DC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3D1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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