#3D2287#3D2287

#3D2287 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.157 H 287.9°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3D2287
RGBrgb(61, 34, 135)
HSLhsl(256, 60%, 33%)
HSVhsv(256, 75%, 53%)
CMYKcmyk(54.8%, 74.8%, 0%, 47.1%)
CIE-LABlab(23.29, 38.92, -51.90)
CIE-LCHlch(23.29, 64.87, 306.87°)
OKLaboklab(35.59% 0.0481 -0.1492)
OKLCHoklch(35.59% 0.157 287.9)
XYZxyz(6.8684, 3.8851, 23.3050)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2287 #6C8722
analogous
#223987 #3D2287 #6F2287
triadic
#3D2287 #873D22 #22873D
tetradic
#3D2287 #872239 #6C8722 #22876F
square
#3D2287 #872239 #6C8722 #22876F
split-complementary
#3D2287 #876F22 #398722
monochromatic
#110925 #271656 #3D2287 #532EB8 #7350D3

Accessibility & contrast

On white

11.82
#3D2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3D2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2287
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2287#FFFFFF#000000##FFFFFF
##3D22871.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#1F3D52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d2287;
/* rgb */ color: rgb(61, 34, 135);
/* oklch */ color: oklch(35.6% 0.157 287.9);
Tailwind
colors: {
  custom: {
    50: '#7b60ab',
    500: '#3d2287',
    950: '#000000',
  },
}
SCSS
$custom: #3d2287;
$custom-light: #7b60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2287",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 256.04,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35592,
    "c": 0.15677,
    "h": 287.9
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#3D2287
secondary
#9BB74E
accent
#E345B9
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D2287

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

Preview Lab → · Contrast checker → · Palette generator →

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