#3D1895#3D1895

#3D1895 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.183 H 286.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#3D1895
RGBrgb(61, 24, 149)
HSLhsl(258, 72%, 34%)
HSVhsv(258, 84%, 58%)
CMYKcmyk(59.1%, 83.9%, 0%, 41.6%)
CIE-LABlab(23.05, 47.79, -61.00)
CIE-LCHlch(23.05, 77.49, 308.08°)
OKLaboklab(35.85% 0.051 -0.1757)
OKLCHoklch(35.85% 0.183 286.2)
XYZxyz(7.6743, 3.8148, 28.7599)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1895 #709518
analogous
#183295 #3D1895 #7C1895
triadic
#3D1895 #953D18 #18953D
tetradic
#3D1895 #951832 #709518 #18957C
square
#3D1895 #951832 #709518 #18957C
split-complementary
#3D1895 #957C18 #329518
monochromatic
#12072C #271060 #3D1895 #5320CA #7446E1

Accessibility & contrast

On white

11.91
#3D1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1895
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1895#FFFFFF#000000##FFFFFF
##3D18951.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#0D3F58
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d1895;
/* rgb */ color: rgb(61, 24, 149);
/* oklch */ color: oklch(35.9% 0.183 286.2);
Tailwind
colors: {
  custom: {
    50: '#7e5bb5',
    500: '#3d1895',
    950: '#000000',
  },
}
SCSS
$custom: #3d1895;
$custom-light: #7e5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1895",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 257.76,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35855,
    "c": 0.18295,
    "h": 286.2
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#3D1895
secondary
#9EC246
accent
#EF39B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1895

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

Preview Lab → · Contrast checker → · Palette generator →

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