#3D1159#3D1159

#3D1159 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.123 H 308.3°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#3D1159
RGBrgb(61, 17, 89)
HSLhsl(277, 68%, 21%)
HSVhsv(277, 81%, 35%)
CMYKcmyk(31.5%, 80.9%, 0%, 65.1%)
CIE-LABlab(16.08, 34.60, -33.87)
CIE-LCHlch(16.08, 48.42, 315.62°)
OKLaboklab(29.21% 0.076 -0.0961)
OKLCHoklch(29.21% 0.123 308.3)
XYZxyz(3.9277, 2.1143, 9.6505)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1159 #2D5911
analogous
#191159 #3D1159 #591151
triadic
#3D1159 #593D11 #11593D
tetradic
#3D1159 #591911 #2D5911 #115159
square
#3D1159 #591911 #2D5911 #115159
split-complementary
#3D1159 #515911 #115919
monochromatic
#12051A #1A0726 #3D1159 #601B8C #8325C0

Accessibility & contrast

On white

14.76
#3D1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3D1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1159
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1159#FFFFFF#000000##FFFFFF
##3D11591.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#392234
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3d1159;
/* rgb */ color: rgb(61, 17, 89);
/* oklch */ color: oklch(29.2% 0.123 308.3);
Tailwind
colors: {
  custom: {
    50: '#765488',
    500: '#3d1159',
    950: '#000000',
  },
}
SCSS
$custom: #3d1159;
$custom-light: #765488;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1159",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 276.667,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29205,
    "c": 0.12253,
    "h": 308.3
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#3D1159
secondary
#589234
accent
#EB3D81
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1159

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

Preview Lab → · Contrast checker → · Palette generator →

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