#3D1E7B#3D1E7B

#3D1E7B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.147 H 291.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3D1E7B
RGBrgb(61, 30, 123)
HSLhsl(260, 61%, 30%)
HSVhsv(260, 76%, 48%)
CMYKcmyk(50.4%, 75.6%, 0%, 51.8%)
CIE-LABlab(21.40, 37.48, -47.42)
CIE-LCHlch(21.40, 60.44, 308.33°)
OKLaboklab(33.91% 0.0547 -0.136)
OKLCHoklch(33.91% 0.147 291.9)
XYZxyz(5.9629, 3.3505, 19.0676)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1E7B #5C7B1E
analogous
#1E2E7B #3D1E7B #6B1E7B
triadic
#3D1E7B #7B3D1E #1E7B3D
tetradic
#3D1E7B #7B1E2E #5C7B1E #1E7B6B
square
#3D1E7B #7B1E2E #5C7B1E #1E7B6B
split-complementary
#3D1E7B #7B6B1E #2E7B1E
monochromatic
#0C0619 #25124A #3D1E7B #552AAC #7242D1

Accessibility & contrast

On white

12.57
#3D1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3D1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1E7B
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1E7B#FFFFFF#000000##FFFFFF
##3D1E7B1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1e7b;
/* rgb */ color: rgb(61, 30, 123);
/* oklch */ color: oklch(33.9% 0.147 291.9);
Tailwind
colors: {
  custom: {
    50: '#795da2',
    500: '#3d1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #3d1e7b;
$custom-light: #795da2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1e7b",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 260,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.33907,
    "c": 0.14661,
    "h": 291.9
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#3D1E7B
secondary
#8CAE46
accent
#E444AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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