#3D1B74#3D1B74

#3D1B74 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.142 H 294.7°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#3D1B74
RGBrgb(61, 27, 116)
HSLhsl(263, 62%, 28%)
HSVhsv(263, 77%, 45%)
CMYKcmyk(47.4%, 76.7%, 0%, 54.5%)
CIE-LABlab(20.19, 37.02, -44.91)
CIE-LCHlch(20.19, 58.20, 309.50°)
OKLaboklab(32.86% 0.0593 -0.1287)
OKLCHoklch(32.86% 0.142 294.7)
XYZxyz(5.4679, 3.0368, 16.8177)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B74 #52741B
analogous
#1B2674 #3D1B74 #691B74
triadic
#3D1B74 #743D1B #1B743D
tetradic
#3D1B74 #741B26 #52741B #1B7469
square
#3D1B74 #741B26 #52741B #1B7469
split-complementary
#3D1B74 #74691B #26741B
monochromatic
#0D0619 #230F42 #3D1B74 #5727A6 #7339D1

Accessibility & contrast

On white

13.06
#3D1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3D1B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B74
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B74#FFFFFF#000000##FFFFFF
##3D1B741.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#2D3246
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1b74;
/* rgb */ color: rgb(61, 27, 116);
/* oklch */ color: oklch(32.9% 0.142 294.7);
Tailwind
colors: {
  custom: {
    50: '#795b9d',
    500: '#3d1b74',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b74;
$custom-light: #795b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b74",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 262.921,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32856,
    "c": 0.14165,
    "h": 294.7
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#3D1B74
secondary
#81A942
accent
#E542A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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