#3D1EA6#3D1EA6

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

Color values

HEX#3D1EA6
RGBrgb(61, 30, 166)
HSLhsl(254, 69%, 38%)
HSVhsv(254, 82%, 65%)
CMYKcmyk(63.3%, 81.9%, 0%, 34.9%)
CIE-LABlab(25.78, 50.05, -66.87)
CIE-LCHlch(25.78, 83.53, 306.81°)
OKLaboklab(38.29% 0.0418 -0.1929)
OKLCHoklch(38.29% 0.197 282.2)
XYZxyz(9.2695, 4.6731, 36.4825)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1EA6 #87A61E
analogous
#1E43A6 #3D1EA6 #811EA6
triadic
#3D1EA6 #A63D1E #1EA63D
tetradic
#3D1EA6 #A61E43 #87A61E #1EA681
square
#3D1EA6 #A61E43 #87A61E #1EA681
split-complementary
#3D1EA6 #A6811E #43A61E
monochromatic
#170B3E #2A1572 #3D1EA6 #5129D8 #7B5DE2

Accessibility & contrast

On white

10.85
#3D1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3D1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1EA6
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1EA6#FFFFFF#000000##FFFFFF
##3D1EA61.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1ea6;
/* rgb */ color: rgb(61, 30, 166);
/* oklch */ color: oklch(38.3% 0.197 282.2);
Tailwind
colors: {
  custom: {
    50: '#8160c2',
    500: '#3d1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #3d1ea6;
$custom-light: #8160c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1ea6",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 253.676,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38288,
    "c": 0.19739,
    "h": 282.2
  },
  "luminance": 0.04674
}

Semantic roles & 50–950 ramp

primary
#3D1EA6
secondary
#ADC65A
accent
#EC3CC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3D1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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