#3D1272#3D1272

#3D1272 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.149 H 297.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#3D1272
RGBrgb(61, 18, 114)
HSLhsl(267, 73%, 26%)
HSVhsv(267, 84%, 45%)
CMYKcmyk(46.5%, 84.2%, 0%, 55.3%)
CIE-LABlab(18.54, 40.66, -46.33)
CIE-LCHlch(18.54, 61.64, 311.28°)
OKLaboklab(31.64% 0.0677 -0.1327)
OKLCHoklch(31.64% 0.149 297)
XYZxyz(5.1772, 2.6395, 16.1530)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1272 #477212
analogous
#121772 #3D1272 #6D1272
triadic
#3D1272 #723D12 #12723D
tetradic
#3D1272 #721217 #477212 #12726D
square
#3D1272 #721217 #477212 #12726D
split-complementary
#3D1272 #726D12 #177212
monochromatic
#0E041A #210A3D #3D1272 #591AA7 #7623DC

Accessibility & contrast

On white

13.74
#3D1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1272
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1272#FFFFFF#000000##FFFFFF
##3D12721.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.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: #3d1272;
/* rgb */ color: rgb(61, 18, 114);
/* oklch */ color: oklch(31.6% 0.149 297.0);
Tailwind
colors: {
  custom: {
    50: '#79569b',
    500: '#3d1272',
    950: '#000000',
  },
}
SCSS
$custom: #3d1272;
$custom-light: #79569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1272",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 266.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31641,
    "c": 0.14902,
    "h": 297
  },
  "luminance": 0.0264
}

Semantic roles & 50–950 ramp

primary
#3D1272
secondary
#76A937
accent
#EF389D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1272

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

Preview Lab → · Contrast checker → · Palette generator →

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