#3D1372#3D1372

#3D1372 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.148 H 296.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3D1372
RGBrgb(61, 19, 114)
HSLhsl(267, 71%, 26%)
HSVhsv(267, 83%, 45%)
CMYKcmyk(46.5%, 83.3%, 0%, 55.3%)
CIE-LABlab(18.68, 40.25, -46.09)
CIE-LCHlch(18.68, 61.19, 311.13°)
OKLaboklab(31.74% 0.0669 -0.1321)
OKLCHoklch(31.74% 0.148 296.9)
XYZxyz(5.1938, 2.6726, 16.1586)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1372 #487213
analogous
#131872 #3D1372 #6C1372
triadic
#3D1372 #723D13 #13723D
tetradic
#3D1372 #721318 #487213 #13726C
square
#3D1372 #721318 #487213 #13726C
split-complementary
#3D1372 #726C13 #187213
monochromatic
#0E041A #210A3E #3D1372 #591CA6 #7525DB

Accessibility & contrast

On white

13.68
#3D1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3D1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1372
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1372#FFFFFF#000000##FFFFFF
##3D13721.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#2F2E43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d1372;
/* rgb */ color: rgb(61, 19, 114);
/* oklch */ color: oklch(31.7% 0.148 296.9);
Tailwind
colors: {
  custom: {
    50: '#79579b',
    500: '#3d1372',
    950: '#000000',
  },
}
SCSS
$custom: #3d1372;
$custom-light: #79579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1372",
  "rgb": {
    "r": 61,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 266.526,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31741,
    "c": 0.14805,
    "h": 296.9
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#3D1372
secondary
#77A938
accent
#EE3A9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1372

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

Preview Lab → · Contrast checker → · Palette generator →

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