#3D2174#3D2174

#3D2174 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.134 H 293.3°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#3D2174
RGBrgb(61, 33, 116)
HSLhsl(260, 56%, 29%)
HSVhsv(260, 72%, 45%)
CMYKcmyk(47.4%, 71.6%, 0%, 54.5%)
CIE-LABlab(21.36, 33.76, -43.00)
CIE-LCHlch(21.36, 54.67, 308.13°)
OKLaboklab(33.69% 0.0531 -0.1231)
OKLCHoklch(33.69% 0.134 293.3)
XYZxyz(5.6198, 3.3406, 16.8683)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2174 #587421
analogous
#212F74 #3D2174 #672174
triadic
#3D2174 #743D21 #21743D
tetradic
#3D2174 #74212F #587421 #217467
square
#3D2174 #74212F #587421 #217467
split-complementary
#3D2174 #746721 #2F7421
monochromatic
#0D0718 #241344 #3D2174 #562FA4 #7245CA

Accessibility & contrast

On white

12.59
#3D2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3D2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2174
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2174#FFFFFF#000000##FFFFFF
##3D21741.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003272
Tritanopia (blue-blind)
#2D3647
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d2174;
/* rgb */ color: rgb(61, 33, 116);
/* oklch */ color: oklch(33.7% 0.134 293.3);
Tailwind
colors: {
  custom: {
    50: '#785e9d',
    500: '#3d2174',
    950: '#000000',
  },
}
SCSS
$custom: #3d2174;
$custom-light: #785e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2174",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 260.241,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33686,
    "c": 0.13406,
    "h": 293.3
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#3D2174
secondary
#88A749
accent
#DF49AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D2174

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

Preview Lab → · Contrast checker → · Palette generator →

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