#3D1B8E#3D1B8E

#3D1B8E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.172 H 287.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#3D1B8E
RGBrgb(61, 27, 142)
HSLhsl(258, 68%, 33%)
HSVhsv(258, 81%, 56%)
CMYKcmyk(57%, 81%, 0%, 44.3%)
CIE-LABlab(22.75, 44.50, -57.15)
CIE-LCHlch(22.75, 72.43, 307.91°)
OKLaboklab(35.43% 0.0516 -0.1645)
OKLCHoklch(35.43% 0.172 287.4)
XYZxyz(7.1974, 3.7286, 25.9264)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B8E #6C8E1B
analogous
#1B338E #3D1B8E #761B8E
triadic
#3D1B8E #8E3D1B #1B8E3D
tetradic
#3D1B8E #8E1B33 #6C8E1B #1B8E76
square
#3D1B8E #8E1B33 #6C8E1B #1B8E76
split-complementary
#3D1B8E #8E761B #338E1B
monochromatic
#110727 #27115B #3D1B8E #5325C1 #7347DC

Accessibility & contrast

On white

12.03
#3D1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3D1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B8E
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B8E#FFFFFF#000000##FFFFFF
##3D1B8E1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#183D55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1b8e;
/* rgb */ color: rgb(61, 27, 142);
/* oklch */ color: oklch(35.4% 0.172 287.4);
Tailwind
colors: {
  custom: {
    50: '#7d5cb0',
    500: '#3d1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b8e;
$custom-light: #7d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b8e",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 257.739,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35428,
    "c": 0.17239,
    "h": 287.4
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#3D1B8E
secondary
#9BBE47
accent
#EB3DB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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