#3D1A74#3D1A74

#3D1A74 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.143 H 294.9°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#3D1A74
RGBrgb(61, 26, 116)
HSLhsl(263, 63%, 28%)
HSVhsv(263, 78%, 45%)
CMYKcmyk(47.4%, 77.6%, 0%, 54.5%)
CIE-LABlab(20.01, 37.53, -45.20)
CIE-LCHlch(20.01, 58.76, 309.70°)
OKLaboklab(32.73% 0.0602 -0.1295)
OKLCHoklch(32.73% 0.143 294.9)
XYZxyz(5.4454, 2.9917, 16.8102)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A74 #51741A
analogous
#1A2474 #3D1A74 #6A1A74
triadic
#3D1A74 #743D1A #1A743D
tetradic
#3D1A74 #741A24 #51741A #1A746A
square
#3D1A74 #741A24 #51741A #1A746A
split-complementary
#3D1A74 #746A1A #24741A
monochromatic
#0D0619 #230F42 #3D1A74 #5725A6 #7336D2

Accessibility & contrast

On white

13.14
#3D1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3D1A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A74
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A74#FFFFFF#000000##FFFFFF
##3D1A741.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1a74;
/* rgb */ color: rgb(61, 26, 116);
/* oklch */ color: oklch(32.7% 0.143 294.9);
Tailwind
colors: {
  custom: {
    50: '#795a9d',
    500: '#3d1a74',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a74;
$custom-light: #795a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a74",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 263.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32729,
    "c": 0.14284,
    "h": 294.9
  },
  "luminance": 0.02992
}

Semantic roles & 50–950 ramp

primary
#3D1A74
secondary
#80A941
accent
#E641A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3D1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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