#3D175C#3D175C

#3D175C is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.118 H 305.6°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#3D175C
RGBrgb(61, 23, 92)
HSLhsl(273, 60%, 23%)
HSVhsv(273, 75%, 36%)
CMYKcmyk(33.7%, 75%, 0%, 63.9%)
CIE-LABlab(17.36, 32.46, -33.80)
CIE-LCHlch(17.36, 46.87, 313.84°)
OKLaboklab(30.19% 0.0687 -0.096)
OKLCHoklch(30.19% 0.118 305.6)
XYZxyz(4.1622, 2.3776, 10.3628)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D175C #365C17
analogous
#1A175C #3D175C #5C1759
triadic
#3D175C #5C3D17 #175C3D
tetradic
#3D175C #5C1A17 #365C17 #17595C
square
#3D175C #5C1A17 #365C17 #17595C
split-complementary
#3D175C #595C17 #175C1A
monochromatic
#100618 #1D0B2B #3D175C #5D238D #7E2FBE

Accessibility & contrast

On white

14.23
#3D175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3D175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D175C
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D175C#FFFFFF#000000##FFFFFF
##3D175C1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#372737
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3d175c;
/* rgb */ color: rgb(61, 23, 92);
/* oklch */ color: oklch(30.2% 0.118 305.6);
Tailwind
colors: {
  custom: {
    50: '#76588b',
    500: '#3d175c',
    950: '#000000',
  },
}
SCSS
$custom: #3d175c;
$custom-light: #76588b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d175c",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 273.043,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30191,
    "c": 0.11804,
    "h": 305.6
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#3D175C
secondary
#63933C
accent
#E3458C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D175C

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

Preview Lab → · Contrast checker → · Palette generator →

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