#3D1A77#3D1A77

#3D1A77 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.146 H 293.9°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#3D1A77
RGBrgb(61, 26, 119)
HSLhsl(263, 64%, 28%)
HSVhsv(263, 78%, 47%)
CMYKcmyk(48.7%, 78.2%, 0%, 53.3%)
CIE-LABlab(20.29, 38.39, -46.67)
CIE-LCHlch(20.29, 60.43, 309.44°)
OKLaboklab(33.01% 0.0594 -0.1338)
OKLCHoklch(33.01% 0.146 293.9)
XYZxyz(5.6227, 3.0626, 17.7441)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A77 #54771A
analogous
#1A2577 #3D1A77 #6B1A77
triadic
#3D1A77 #773D1A #1A773D
tetradic
#3D1A77 #771A25 #54771A #1A776B
square
#3D1A77 #771A25 #54771A #1A776B
split-complementary
#3D1A77 #776B1A #25771A
monochromatic
#0D0519 #230F45 #3D1A77 #5725A9 #7238D3

Accessibility & contrast

On white

13.02
#3D1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1A77
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A77#FFFFFF#000000##FFFFFF
##3D1A771.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#2C3347
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1a77;
/* rgb */ color: rgb(61, 26, 119);
/* oklch */ color: oklch(33.0% 0.146 293.9);
Tailwind
colors: {
  custom: {
    50: '#795b9f',
    500: '#3d1a77',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a77;
$custom-light: #795b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a77",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 262.581,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33014,
    "c": 0.14641,
    "h": 293.9
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#3D1A77
secondary
#84AC41
accent
#E741A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3D1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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