#3D1F95#3D1F95

#3D1F95 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.177 H 285.3°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#3D1F95
RGBrgb(61, 31, 149)
HSLhsl(255, 66%, 35%)
HSVhsv(255, 79%, 58%)
CMYKcmyk(59.1%, 79.2%, 0%, 41.6%)
CIE-LABlab(24.13, 44.64, -59.21)
CIE-LCHlch(24.13, 74.15, 307.01°)
OKLaboklab(36.61% 0.0466 -0.1706)
OKLCHoklch(36.61% 0.177 285.3)
XYZxyz(7.8376, 4.1415, 28.8143)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F95 #77951F
analogous
#1F3C95 #3D1F95 #781F95
triadic
#3D1F95 #953D1F #1F953D
tetradic
#3D1F95 #951F3C #77951F #1F9578
square
#3D1F95 #951F3C #77951F #1F9578
split-complementary
#3D1F95 #95781F #3C951F
monochromatic
#140A30 #281462 #3D1F95 #522AC8 #7653DB

Accessibility & contrast

On white

11.49
#3D1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3D1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F95
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F95#FFFFFF#000000##FFFFFF
##3D1F951.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#0C4159
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d1f95;
/* rgb */ color: rgb(61, 31, 149);
/* oklch */ color: oklch(36.6% 0.177 285.3);
Tailwind
colors: {
  custom: {
    50: '#7e5fb5',
    500: '#3d1f95',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f95;
$custom-light: #7e5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f95",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 255.254,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36606,
    "c": 0.17683,
    "h": 285.3
  },
  "luminance": 0.04142
}

Semantic roles & 50–950 ramp

primary
#3D1F95
secondary
#A3BF51
accent
#E93FBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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