#3D175B#3D175B

#3D175B is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.117 H 306.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#3D175B
RGBrgb(61, 23, 91)
HSLhsl(274, 60%, 22%)
HSVhsv(274, 75%, 36%)
CMYKcmyk(33%, 74.7%, 0%, 64.3%)
CIE-LABlab(17.27, 32.20, -33.27)
CIE-LCHlch(17.27, 46.30, 314.06°)
OKLaboklab(30.11% 0.0689 -0.0944)
OKLCHoklch(30.11% 0.117 306.1)
XYZxyz(4.1188, 2.3603, 10.1341)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D175B #355B17
analogous
#1B175B #3D175B #5B1757
triadic
#3D175B #5B3D17 #175B3D
tetradic
#3D175B #5B1B17 #355B17 #17575B
square
#3D175B #5B1B17 #355B17 #17575B
split-complementary
#3D175B #575B17 #175B1B
monochromatic
#100618 #1C0B2A #3D175B #5E238C #7E30BD

Accessibility & contrast

On white

14.27
#3D175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3D175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D175B
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D175B#FFFFFF#000000##FFFFFF
##3D175B1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#022B5A
Tritanopia (blue-blind)
#382637
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3d175b;
/* rgb */ color: rgb(61, 23, 91);
/* oklch */ color: oklch(30.1% 0.117 306.1);
Tailwind
colors: {
  custom: {
    50: '#76578a',
    500: '#3d175b',
    950: '#000000',
  },
}
SCSS
$custom: #3d175b;
$custom-light: #76578a;
$custom-dark: #000000;
JSON
{
  "hex": "#3d175b",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 273.529,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30108,
    "c": 0.11686,
    "h": 306.1
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#3D175B
secondary
#62923C
accent
#E3458B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D175B

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

Preview Lab → · Contrast checker → · Palette generator →

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