#3D1D7B#3D1D7B

#3D1D7B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.148 H 292.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#3D1D7B
RGBrgb(61, 29, 123)
HSLhsl(260, 62%, 30%)
HSVhsv(260, 76%, 48%)
CMYKcmyk(50.4%, 76.4%, 0%, 51.8%)
CIE-LABlab(21.21, 38.01, -47.72)
CIE-LCHlch(21.21, 61.01, 308.54°)
OKLaboklab(33.78% 0.0556 -0.1369)
OKLCHoklch(33.78% 0.148 292.1)
XYZxyz(5.9380, 3.3007, 19.0593)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D7B #5B7B1D
analogous
#1D2C7B #3D1D7B #6C1D7B
triadic
#3D1D7B #7B3D1D #1D7B3D
tetradic
#3D1D7B #7B1D2C #5B7B1D #1D7B6C
square
#3D1D7B #7B1D2C #5B7B1D #1D7B6C
split-complementary
#3D1D7B #7B6C1D #2C7B1D
monochromatic
#0C0619 #241149 #3D1D7B #5629AD #7240D2

Accessibility & contrast

On white

12.65
#3D1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3D1D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D7B
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D7B#FFFFFF#000000##FFFFFF
##3D1D7B1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#29364A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1d7b;
/* rgb */ color: rgb(61, 29, 123);
/* oklch */ color: oklch(33.8% 0.148 292.1);
Tailwind
colors: {
  custom: {
    50: '#795ca2',
    500: '#3d1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d7b;
$custom-light: #795ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d7b",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 260.426,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33776,
    "c": 0.14778,
    "h": 292.1
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#3D1D7B
secondary
#8BAF45
accent
#E543AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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