#3D1172#3D1172

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

Color values

HEX#3D1172
RGBrgb(61, 17, 114)
HSLhsl(267, 74%, 26%)
HSVhsv(267, 85%, 45%)
CMYKcmyk(46.5%, 85.1%, 0%, 55.3%)
CIE-LABlab(18.40, 41.07, -46.55)
CIE-LCHlch(18.40, 62.08, 311.42°)
OKLaboklab(31.55% 0.0685 -0.1334)
OKLCHoklch(31.55% 0.15 297.2)
XYZxyz(5.1614, 2.6078, 16.1477)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1172 #467211
analogous
#111672 #3D1172 #6D1172
triadic
#3D1172 #723D11 #11723D
tetradic
#3D1172 #721116 #467211 #11726D
square
#3D1172 #721116 #467211 #11726D
split-complementary
#3D1172 #726D11 #167211
monochromatic
#0E041B #21093D #3D1172 #5919A7 #7621DD

Accessibility & contrast

On white

13.80
#3D1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1172
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1172#FFFFFF#000000##FFFFFF
##3D11721.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1172;
/* rgb */ color: rgb(61, 17, 114);
/* oklch */ color: oklch(31.5% 0.150 297.2);
Tailwind
colors: {
  custom: {
    50: '#79569b',
    500: '#3d1172',
    950: '#000000',
  },
}
SCSS
$custom: #3d1172;
$custom-light: #79569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1172",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 267.216,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31545,
    "c": 0.14995,
    "h": 297.2
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#3D1172
secondary
#75A936
accent
#F1379D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1172

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

Preview Lab → · Contrast checker → · Palette generator →

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