#3D1F73#3D1F73

#3D1F73 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.135 H 294.2°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#3D1F73
RGBrgb(61, 31, 115)
HSLhsl(261, 58%, 29%)
HSVhsv(261, 73%, 45%)
CMYKcmyk(47%, 73%, 0%, 54.9%)
CIE-LABlab(20.86, 34.59, -43.17)
CIE-LCHlch(20.86, 55.31, 308.71°)
OKLaboklab(33.31% 0.0554 -0.1236)
OKLCHoklch(33.31% 0.135 294.2)
XYZxyz(5.5081, 3.2097, 16.5457)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F73 #55731F
analogous
#1F2B73 #3D1F73 #671F73
triadic
#3D1F73 #733D1F #1F733D
tetradic
#3D1F73 #731F2B #55731F #1F7367
square
#3D1F73 #731F2B #55731F #1F7367
split-complementary
#3D1F73 #73671F #2B731F
monochromatic
#0D0618 #231243 #3D1F73 #572CA3 #7241CC

Accessibility & contrast

On white

12.79
#3D1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D1F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F73
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F73#FFFFFF#000000##FFFFFF
##3D1F731.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#2E3446
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1f73;
/* rgb */ color: rgb(61, 31, 115);
/* oklch */ color: oklch(33.3% 0.135 294.2);
Tailwind
colors: {
  custom: {
    50: '#785d9c',
    500: '#3d1f73',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f73;
$custom-light: #785d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f73",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 261.429,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33306,
    "c": 0.13543,
    "h": 294.2
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#3D1F73
secondary
#85A747
accent
#E147AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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