#3D1C98#3D1C98

#3D1C98 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.183 H 285.1°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3D1C98
RGBrgb(61, 28, 152)
HSLhsl(256, 69%, 35%)
HSVhsv(256, 82%, 60%)
CMYKcmyk(59.9%, 81.6%, 0%, 40.4%)
CIE-LABlab(23.96, 46.91, -61.34)
CIE-LCHlch(23.96, 77.22, 307.41°)
OKLaboklab(36.58% 0.0476 -0.1767)
OKLCHoklch(36.58% 0.183 285.1)
XYZxyz(8.0055, 4.0891, 30.0671)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1C98 #77981C
analogous
#1C3998 #3D1C98 #7B1C98
triadic
#3D1C98 #983D1C #1C983D
tetradic
#3D1C98 #981C39 #77981C #1C987B
square
#3D1C98 #981C39 #77981C #1C987B
split-complementary
#3D1C98 #987B1C #39981C
monochromatic
#140931 #281264 #3D1C98 #5226CC #7650DF

Accessibility & contrast

On white

11.55
#3D1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3D1C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1C98
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1C98#FFFFFF#000000##FFFFFF
##3D1C981.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#05415B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d1c98;
/* rgb */ color: rgb(61, 28, 152);
/* oklch */ color: oklch(36.6% 0.183 285.1);
Tailwind
colors: {
  custom: {
    50: '#7e5eb8',
    500: '#3d1c98',
    950: '#000000',
  },
}
SCSS
$custom: #3d1c98;
$custom-light: #7e5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1c98",
  "rgb": {
    "r": 61,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 255.968,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36582,
    "c": 0.18304,
    "h": 285.1
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#3D1C98
secondary
#A3C14E
accent
#EC3CBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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