#3D1E8B#3D1E8B

#3D1E8B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.166 H 287.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#3D1E8B
RGBrgb(61, 30, 139)
HSLhsl(257, 64%, 33%)
HSVhsv(257, 78%, 55%)
CMYKcmyk(56.1%, 78.4%, 0%, 45.5%)
CIE-LABlab(22.95, 42.19, -54.96)
CIE-LCHlch(22.95, 69.29, 307.51°)
OKLaboklab(35.47% 0.0503 -0.1581)
OKLCHoklch(35.47% 0.166 287.7)
XYZxyz(7.0476, 3.7844, 24.7802)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1E8B #6C8B1E
analogous
#1E368B #3D1E8B #731E8B
triadic
#3D1E8B #8B3D1E #1E8B3D
tetradic
#3D1E8B #8B1E36 #6C8B1E #1E8B73
square
#3D1E8B #8B1E36 #6C8B1E #1E8B73
split-complementary
#3D1E8B #8B731E #368B1E
monochromatic
#110826 #271359 #3D1E8B #5329BD #734BD8

Accessibility & contrast

On white

11.95
#3D1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3D1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1E8B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1E8B#FFFFFF#000000##FFFFFF
##3D1E8B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#1C3D54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d1e8b;
/* rgb */ color: rgb(61, 30, 139);
/* oklch */ color: oklch(35.5% 0.166 287.7);
Tailwind
colors: {
  custom: {
    50: '#7c5eae',
    500: '#3d1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #3d1e8b;
$custom-light: #7c5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1e8b",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 257.064,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35469,
    "c": 0.16596,
    "h": 287.7
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#3D1E8B
secondary
#9BBB4A
accent
#E740B8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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