#3D175E#3D175E

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

Color values

HEX#3D175E
RGBrgb(61, 23, 94)
HSLhsl(272, 61%, 23%)
HSVhsv(272, 76%, 37%)
CMYKcmyk(35.1%, 75.5%, 0%, 63.1%)
CIE-LABlab(17.52, 32.99, -34.87)
CIE-LCHlch(17.52, 48.00, 313.42°)
OKLaboklab(30.36% 0.0683 -0.0991)
OKLCHoklch(30.36% 0.12 304.6)
XYZxyz(4.2508, 2.4131, 10.8293)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D175E #385E17
analogous
#1A175E #3D175E #5E175B
triadic
#3D175E #5E3D17 #175E3D
tetradic
#3D175E #5E1A17 #385E17 #175B5E
square
#3D175E #5E1A17 #385E17 #175B5E
split-complementary
#3D175E #5B5E17 #175E1A
monochromatic
#100619 #1D0B2D #3D175E #5D238F #7D2FC0

Accessibility & contrast

On white

14.16
#3D175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D175E
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D175E#FFFFFF#000000##FFFFFF
##3D175E1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d175e;
/* rgb */ color: rgb(61, 23, 94);
/* oklch */ color: oklch(30.4% 0.120 304.6);
Tailwind
colors: {
  custom: {
    50: '#76588c',
    500: '#3d175e',
    950: '#000000',
  },
}
SCSS
$custom: #3d175e;
$custom-light: #76588c;
$custom-dark: #000000;
JSON
{
  "hex": "#3d175e",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 272.113,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30361,
    "c": 0.12041,
    "h": 304.6
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#3D175E
secondary
#65953C
accent
#E4448E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D175E

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

Preview Lab → · Contrast checker → · Palette generator →

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