#3D185F#3D185F

#3D185F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.120 H 303.9°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#3D185F
RGBrgb(61, 24, 95)
HSLhsl(271, 60%, 23%)
HSVhsv(271, 75%, 37%)
CMYKcmyk(35.8%, 74.7%, 0%, 62.7%)
CIE-LABlab(17.79, 32.74, -35.10)
CIE-LCHlch(17.79, 48.00, 313.01°)
OKLaboklab(30.58% 0.067 -0.0998)
OKLCHoklch(30.58% 0.12 303.9)
XYZxyz(4.3162, 2.4716, 11.0739)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D185F #3A5F18
analogous
#1A185F #3D185F #5F185D
triadic
#3D185F #5F3D18 #185F3D
tetradic
#3D185F #5F1A18 #3A5F18 #185D5F
square
#3D185F #5F1A18 #3A5F18 #185D5F
split-complementary
#3D185F #5D5F18 #185F1A
monochromatic
#100618 #1E0C2E #3D185F #5C2490 #7C31C1

Accessibility & contrast

On white

14.05
#3D185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3D185F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D185F
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D185F#FFFFFF#000000##FFFFFF
##3D185F1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#362939
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3d185f;
/* rgb */ color: rgb(61, 24, 95);
/* oklch */ color: oklch(30.6% 0.120 303.9);
Tailwind
colors: {
  custom: {
    50: '#76588d',
    500: '#3d185f',
    950: '#000000',
  },
}
SCSS
$custom: #3d185f;
$custom-light: #76588d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d185f",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 271.268,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30578,
    "c": 0.12022,
    "h": 303.9
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#3D185F
secondary
#68953D
accent
#E34591
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D185F

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

Preview Lab → · Contrast checker → · Palette generator →

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