#3D1271#3D1271

#3D1271 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.148 H 297.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#3D1271
RGBrgb(61, 18, 113)
HSLhsl(267, 73%, 26%)
HSVhsv(267, 84%, 44%)
CMYKcmyk(46%, 84.1%, 0%, 55.7%)
CIE-LABlab(18.44, 40.40, -45.84)
CIE-LCHlch(18.44, 61.10, 311.39°)
OKLaboklab(31.54% 0.0681 -0.1313)
OKLCHoklch(31.54% 0.148 297.4)
XYZxyz(5.1206, 2.6169, 15.8549)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1271 #467112
analogous
#121671 #3D1271 #6C1271
triadic
#3D1271 #713D12 #12713D
tetradic
#3D1271 #711216 #467112 #12716C
square
#3D1271 #711216 #467112 #12716C
split-complementary
#3D1271 #716C12 #167112
monochromatic
#0E041A #210A3C #3D1271 #591AA6 #7623DB

Accessibility & contrast

On white

13.78
#3D1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3D1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1271
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1271#FFFFFF#000000##FFFFFF
##3D12711.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#2F2D42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d1271;
/* rgb */ color: rgb(61, 18, 113);
/* oklch */ color: oklch(31.5% 0.148 297.4);
Tailwind
colors: {
  custom: {
    50: '#79569b',
    500: '#3d1271',
    950: '#000000',
  },
}
SCSS
$custom: #3d1271;
$custom-light: #79569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1271",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 267.158,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31542,
    "c": 0.14791,
    "h": 297.4
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#3D1271
secondary
#75A837
accent
#EF399D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1271

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

Preview Lab → · Contrast checker → · Palette generator →

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