#3D1261#3D1261

#3D1261 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.130 H 304.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#3D1261
RGBrgb(61, 18, 97)
HSLhsl(273, 69%, 23%)
HSVhsv(273, 81%, 38%)
CMYKcmyk(37.1%, 81.4%, 0%, 62%)
CIE-LABlab(16.93, 36.19, -37.82)
CIE-LCHlch(16.93, 52.35, 313.74°)
OKLaboklab(30.03% 0.073 -0.1078)
OKLCHoklch(30.03% 0.13 304.1)
XYZxyz(4.2979, 2.2878, 11.5221)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1261 #366112
analogous
#151261 #3D1261 #61125E
triadic
#3D1261 #613D12 #12613D
tetradic
#3D1261 #611512 #366112 #125E61
square
#3D1261 #611512 #366112 #125E61
split-complementary
#3D1261 #5E6112 #126115
monochromatic
#10051A #1D082D #3D1261 #5D1C95 #7E25C8

Accessibility & contrast

On white

14.41
#3D1261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3D1261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1261
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1261#FFFFFF#000000##FFFFFF
##3D12611.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#362639
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d1261;
/* rgb */ color: rgb(61, 18, 97);
/* oklch */ color: oklch(30.0% 0.130 304.1);
Tailwind
colors: {
  custom: {
    50: '#77558f',
    500: '#3d1261',
    950: '#000000',
  },
}
SCSS
$custom: #3d1261;
$custom-light: #77558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1261",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 272.658,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30025,
    "c": 0.13017,
    "h": 304.1
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#3D1261
secondary
#639936
accent
#EC3C8C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D1261

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

Preview Lab → · Contrast checker → · Palette generator →

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