#3D175F#3D175F

#3D175F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.122 H 304.1°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#3D175F
RGBrgb(61, 23, 95)
HSLhsl(272, 61%, 23%)
HSVhsv(272, 76%, 37%)
CMYKcmyk(35.8%, 75.8%, 0%, 62.7%)
CIE-LABlab(17.60, 33.26, -35.40)
CIE-LCHlch(17.60, 48.57, 313.22°)
OKLaboklab(30.45% 0.0682 -0.1007)
OKLCHoklch(30.45% 0.122 304.1)
XYZxyz(4.2960, 2.4311, 11.0672)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D175F #395F17
analogous
#19175F #3D175F #5F175D
triadic
#3D175F #5F3D17 #175F3D
tetradic
#3D175F #5F1917 #395F17 #175D5F
square
#3D175F #5F1917 #395F17 #175D5F
split-complementary
#3D175F #5D5F17 #175F19
monochromatic
#100619 #1D0B2E #3D175F #5D2390 #7C2FC2

Accessibility & contrast

On white

14.13
#3D175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D175F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D175F#FFFFFF#000000##FFFFFF
##3D175F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#362839
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3d175f;
/* rgb */ color: rgb(61, 23, 95);
/* oklch */ color: oklch(30.4% 0.122 304.1);
Tailwind
colors: {
  custom: {
    50: '#76588d',
    500: '#3d175f',
    950: '#000000',
  },
}
SCSS
$custom: #3d175f;
$custom-light: #76588d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d175f",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 271.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30446,
    "c": 0.12159,
    "h": 304.1
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#3D175F
secondary
#66963C
accent
#E4448F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D175F

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

Preview Lab → · Contrast checker → · Palette generator →

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