#3D154C#3D154C

#3D154C is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.6% C 0.102 H 315.5°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#3D154C
RGBrgb(61, 21, 76)
HSLhsl(284, 57%, 19%)
HSVhsv(284, 72%, 30%)
CMYKcmyk(19.7%, 72.4%, 0%, 70.2%)
CIE-LABlab(15.75, 29.45, -25.56)
CIE-LCHlch(15.75, 38.99, 319.04°)
OKLaboklab(28.65% 0.073 -0.0718)
OKLCHoklch(28.65% 0.102 315.5)
XYZxyz(3.4969, 2.0504, 7.0476)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D154C #244C15
analogous
#22154C #3D154C #4C1540
triadic
#3D154C #4C3D15 #154C3D
tetradic
#3D154C #4C2215 #244C15 #15404C
square
#3D154C #4C2215 #244C15 #15404C
split-complementary
#3D154C #404C15 #154C22
monochromatic
#130718 #17081C #3D154C #63227C #8A2FAC

Accessibility & contrast

On white

14.89
#3D154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3D154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D154C
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D154C#FFFFFF#000000##FFFFFF
##3D154C1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254E
Deuteranopia (green-blind)
#14284B
Tritanopia (blue-blind)
#3C1F2E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3d154c;
/* rgb */ color: rgb(61, 21, 76);
/* oklch */ color: oklch(28.6% 0.102 315.5);
Tailwind
colors: {
  custom: {
    50: '#75567e',
    500: '#3d154c',
    950: '#000000',
  },
}
SCSS
$custom: #3d154c;
$custom-light: #75567e;
$custom-dark: #000000;
JSON
{
  "hex": "#3d154c",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 283.636,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28649,
    "c": 0.10236,
    "h": 315.5
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#3D154C
secondary
#4D8439
accent
#E04871
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3D154C

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

Preview Lab → · Contrast checker → · Palette generator →

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