#3D1B89#3D1B89

#3D1B89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.167 H 288.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#3D1B89
RGBrgb(61, 27, 137)
HSLhsl(259, 67%, 32%)
HSVhsv(259, 80%, 54%)
CMYKcmyk(55.5%, 80.3%, 0%, 46.3%)
CIE-LABlab(22.24, 43.06, -54.88)
CIE-LCHlch(22.24, 69.75, 308.12°)
OKLaboklab(34.91% 0.0532 -0.1579)
OKLCHoklch(34.91% 0.167 288.6)
XYZxyz(6.8304, 3.5818, 23.9935)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B89 #67891B
analogous
#1B3089 #3D1B89 #741B89
triadic
#3D1B89 #893D1B #1B893D
tetradic
#3D1B89 #891B30 #67891B #1B8974
square
#3D1B89 #891B30 #67891B #1B8974
split-complementary
#3D1B89 #89741B #30891B
monochromatic
#0F0723 #261156 #3D1B89 #5425BC #7344DA

Accessibility & contrast

On white

12.23
#3D1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D1B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B89
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B89#FFFFFF#000000##FFFFFF
##3D1B891.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#1E3B52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1b89;
/* rgb */ color: rgb(61, 27, 137);
/* oklch */ color: oklch(34.9% 0.167 288.6);
Tailwind
colors: {
  custom: {
    50: '#7c5cac',
    500: '#3d1b89',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b89;
$custom-light: #7c5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b89",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 258.545,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34914,
    "c": 0.16658,
    "h": 288.6
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#3D1B89
secondary
#97BC44
accent
#EA3EB5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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