#3D1790#3D1790

#3D1790 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.178 H 287.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#3D1790
RGBrgb(61, 23, 144)
HSLhsl(259, 72%, 33%)
HSVhsv(259, 84%, 56%)
CMYKcmyk(57.6%, 84%, 0%, 43.5%)
CIE-LABlab(22.37, 46.81, -59.03)
CIE-LCHlch(22.37, 75.33, 308.41°)
OKLaboklab(35.22% 0.0534 -0.1699)
OKLCHoklch(35.22% 0.178 287.4)
XYZxyz(7.2634, 3.6181, 26.6958)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1790 #6A9017
analogous
#172D90 #3D1790 #791790
triadic
#3D1790 #903D17 #17903D
tetradic
#3D1790 #90172D #6A9017 #179079
square
#3D1790 #90172D #6A9017 #179079
split-complementary
#3D1790 #907917 #2D9017
monochromatic
#100626 #270F5B #3D1790 #531FC5 #7341E1

Accessibility & contrast

On white

12.18
#3D1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1790
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1790#FFFFFF#000000##FFFFFF
##3D17901.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#163C55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1790;
/* rgb */ color: rgb(61, 23, 144);
/* oklch */ color: oklch(35.2% 0.178 287.4);
Tailwind
colors: {
  custom: {
    50: '#7d5bb2',
    500: '#3d1790',
    950: '#000000',
  },
}
SCSS
$custom: #3d1790;
$custom-light: #7d5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1790",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 258.843,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35224,
    "c": 0.17814,
    "h": 287.4
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#3D1790
secondary
#99C142
accent
#EF39B6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1790

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

Preview Lab → · Contrast checker → · Palette generator →

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