#3D1EA8#3D1EA8

#3D1EA8 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.200 H 281.9°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#3D1EA8
RGBrgb(61, 30, 168)
HSLhsl(253, 70%, 39%)
HSVhsv(253, 82%, 66%)
CMYKcmyk(63.7%, 82.1%, 0%, 34.1%)
CIE-LABlab(26.00, 50.63, -67.72)
CIE-LCHlch(26.00, 84.55, 306.78°)
OKLaboklab(38.51% 0.0412 -0.1954)
OKLCHoklch(38.51% 0.2 281.9)
XYZxyz(9.4544, 4.7471, 37.4563)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1EA8 #89A81E
analogous
#1E44A8 #3D1EA8 #821EA8
triadic
#3D1EA8 #A83D1E #1EA83D
tetradic
#3D1EA8 #A81E44 #89A81E #1EA882
square
#3D1EA8 #A81E44 #89A81E #1EA882
split-complementary
#3D1EA8 #A8821E #44A81E
monochromatic
#170B40 #2A1574 #3D1EA8 #512AD9 #7C5EE2

Accessibility & contrast

On white

10.77
#3D1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3D1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1EA8
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1EA8#FFFFFF#000000##FFFFFF
##3D1EA81.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d1ea8;
/* rgb */ color: rgb(61, 30, 168);
/* oklch */ color: oklch(38.5% 0.200 281.9);
Tailwind
colors: {
  custom: {
    50: '#8160c3',
    500: '#3d1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #3d1ea8;
$custom-light: #8160c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1ea8",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 253.478,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38505,
    "c": 0.19966,
    "h": 281.9
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#3D1EA8
secondary
#AEC75B
accent
#ED3BC5
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3D1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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