#3D1870#3D1870

#3D1870 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.140 H 296.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#3D1870
RGBrgb(61, 24, 112)
HSLhsl(265, 65%, 27%)
HSVhsv(265, 79%, 44%)
CMYKcmyk(45.5%, 78.6%, 0%, 56.1%)
CIE-LABlab(19.29, 37.41, -43.80)
CIE-LCHlch(19.29, 57.60, 310.49°)
OKLaboklab(32.1% 0.0632 -0.1254)
OKLCHoklch(32.1% 0.14 296.7)
XYZxyz(5.1750, 2.8151, 15.5968)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1870 #4B7018
analogous
#181F70 #3D1870 #691870
triadic
#3D1870 #703D18 #18703D
tetradic
#3D1870 #70181F #4B7018 #187069
square
#3D1870 #70181F #4B7018 #187069
split-complementary
#3D1870 #706918 #1F7018
monochromatic
#0E0519 #220D3E #3D1870 #5823A2 #7430D3

Accessibility & contrast

On white

13.44
#3D1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3D1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1870
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1870#FFFFFF#000000##FFFFFF
##3D18701.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#2F2F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3d1870;
/* rgb */ color: rgb(61, 24, 112);
/* oklch */ color: oklch(32.1% 0.140 296.7);
Tailwind
colors: {
  custom: {
    50: '#78599a',
    500: '#3d1870',
    950: '#000000',
  },
}
SCSS
$custom: #3d1870;
$custom-light: #78599a;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1870",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 265.227,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32105,
    "c": 0.14042,
    "h": 296.7
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#3D1870
secondary
#7AA53E
accent
#E840A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1870

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

Preview Lab → · Contrast checker → · Palette generator →

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