#3D1794#3D1794

#3D1794 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.7% C 0.183 H 286.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#3D1794
RGBrgb(61, 23, 148)
HSLhsl(258, 73%, 34%)
HSVhsv(258, 84%, 58%)
CMYKcmyk(58.8%, 84.5%, 0%, 42%)
CIE-LABlab(22.80, 47.92, -60.79)
CIE-LCHlch(22.80, 77.40, 308.25°)
OKLaboklab(35.65% 0.0519 -0.1751)
OKLCHoklch(35.65% 0.183 286.5)
XYZxyz(7.5746, 3.7426, 28.3345)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1794 #6E9417
analogous
#172F94 #3D1794 #7B1794
triadic
#3D1794 #943D17 #17943D
tetradic
#3D1794 #94172F #6E9417 #17947B
square
#3D1794 #94172F #6E9417 #17947B
split-complementary
#3D1794 #947B17 #2F9417
monochromatic
#11072A #270F5F #3D1794 #531FC9 #7444E2

Accessibility & contrast

On white

12.01
#3D1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1794
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1794#FFFFFF#000000##FFFFFF
##3D17941.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#103E57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1794;
/* rgb */ color: rgb(61, 23, 148);
/* oklch */ color: oklch(35.7% 0.183 286.5);
Tailwind
colors: {
  custom: {
    50: '#7e5bb5',
    500: '#3d1794',
    950: '#000000',
  },
}
SCSS
$custom: #3d1794;
$custom-light: #7e5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1794",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 258.24,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35652,
    "c": 0.18262,
    "h": 286.5
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#3D1794
secondary
#9CC344
accent
#F038B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1794

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

Preview Lab → · Contrast checker → · Palette generator →

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