#3D1864#3D1864

#3D1864 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.126 H 301.6°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#3D1864
RGBrgb(61, 24, 100)
HSLhsl(269, 61%, 24%)
HSVhsv(269, 76%, 39%)
CMYKcmyk(39%, 76%, 0%, 60.8%)
CIE-LABlab(18.21, 34.09, -37.72)
CIE-LCHlch(18.21, 50.85, 312.11°)
OKLaboklab(31.01% 0.0661 -0.1075)
OKLCHoklch(31.01% 0.126 301.6)
XYZxyz(4.5508, 2.5654, 12.3095)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1864 #3F6418
analogous
#181964 #3D1864 #631864
triadic
#3D1864 #643D18 #18643D
tetradic
#3D1864 #641819 #3F6418 #186463
square
#3D1864 #641819 #3F6418 #186463
split-complementary
#3D1864 #646318 #196418
monochromatic
#0F0619 #1F0C33 #3D1864 #5B2495 #7930C7

Accessibility & contrast

On white

13.88
#3D1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3D1864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1864
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1864#FFFFFF#000000##FFFFFF
##3D18641.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002C62
Tritanopia (blue-blind)
#352B3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3d1864;
/* rgb */ color: rgb(61, 24, 100);
/* oklch */ color: oklch(31.0% 0.126 301.6);
Tailwind
colors: {
  custom: {
    50: '#775891',
    500: '#3d1864',
    950: '#000000',
  },
}
SCSS
$custom: #3d1864;
$custom-light: #775891;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1864",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 269.211,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31011,
    "c": 0.12619,
    "h": 301.6
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#3D1864
secondary
#6D9A3E
accent
#E44396
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #3D1864

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

Preview Lab → · Contrast checker → · Palette generator →

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