#3D1F75#3D1F75

#3D1F75 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.138 H 293.5°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#3D1F75
RGBrgb(61, 31, 117)
HSLhsl(261, 58%, 29%)
HSVhsv(261, 74%, 46%)
CMYKcmyk(47.9%, 73.5%, 0%, 54.1%)
CIE-LABlab(21.04, 35.18, -44.16)
CIE-LCHlch(21.04, 56.46, 308.54°)
OKLaboklab(33.49% 0.055 -0.1265)
OKLCHoklch(33.49% 0.138 293.5)
XYZxyz(5.6245, 3.2563, 17.1583)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F75 #57751F
analogous
#1F2C75 #3D1F75 #681F75
triadic
#3D1F75 #753D1F #1F753D
tetradic
#3D1F75 #751F2C #57751F #1F7568
square
#3D1F75 #751F2C #57751F #1F7568
split-complementary
#3D1F75 #75681F #2C751F
monochromatic
#0D0618 #241245 #3D1F75 #562CA5 #7242CD

Accessibility & contrast

On white

12.72
#3D1F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3D1F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F75
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F75#FFFFFF#000000##FFFFFF
##3D1F751.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#2D3547
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1f75;
/* rgb */ color: rgb(61, 31, 117);
/* oklch */ color: oklch(33.5% 0.138 293.5);
Tailwind
colors: {
  custom: {
    50: '#785d9e',
    500: '#3d1f75',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f75;
$custom-light: #785d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f75",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 260.93,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33487,
    "c": 0.13794,
    "h": 293.5
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#3D1F75
secondary
#87A947
accent
#E146AB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1F75

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

Preview Lab → · Contrast checker → · Palette generator →

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