#3D1EA7#3D1EA7

#3D1EA7 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.199 H 282.1°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#3D1EA7
RGBrgb(61, 30, 167)
HSLhsl(254, 70%, 39%)
HSVhsv(254, 82%, 65%)
CMYKcmyk(63.5%, 82%, 0%, 34.5%)
CIE-LABlab(25.89, 50.34, -67.30)
CIE-LCHlch(25.89, 84.04, 306.80°)
OKLaboklab(38.4% 0.0415 -0.1941)
OKLCHoklch(38.4% 0.199 282.1)
XYZxyz(9.3616, 4.7100, 36.9675)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1EA7 #88A71E
analogous
#1E43A7 #3D1EA7 #811EA7
triadic
#3D1EA7 #A73D1E #1EA73D
tetradic
#3D1EA7 #A71E43 #88A71E #1EA781
square
#3D1EA7 #A71E43 #88A71E #1EA781
split-complementary
#3D1EA7 #A7811E #43A71E
monochromatic
#170B3F #2A1573 #3D1EA7 #512AD9 #7B5DE2

Accessibility & contrast

On white

10.81
#3D1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1EA7
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1EA7#FFFFFF#000000##FFFFFF
##3D1EA71.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d1ea7;
/* rgb */ color: rgb(61, 30, 167);
/* oklch */ color: oklch(38.4% 0.199 282.1);
Tailwind
colors: {
  custom: {
    50: '#8160c2',
    500: '#3d1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #3d1ea7;
$custom-light: #8160c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1ea7",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 253.577,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38396,
    "c": 0.19852,
    "h": 282.1
  },
  "luminance": 0.04711
}

Semantic roles & 50–950 ramp

primary
#3D1EA7
secondary
#AEC65B
accent
#EC3BC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3D1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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