#3D1866#3D1866

#3D1866 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.129 H 300.7°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#3D1866
RGBrgb(61, 24, 102)
HSLhsl(268, 62%, 25%)
HSVhsv(268, 76%, 40%)
CMYKcmyk(40.2%, 76.5%, 0%, 60%)
CIE-LABlab(18.39, 34.64, -38.76)
CIE-LCHlch(18.39, 51.98, 311.79°)
OKLaboklab(31.19% 0.0656 -0.1106)
OKLCHoklch(31.19% 0.129 300.7)
XYZxyz(4.6488, 2.6046, 12.8256)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1866 #416618
analogous
#181A66 #3D1866 #641866
triadic
#3D1866 #663D18 #18663D
tetradic
#3D1866 #66181A #416618 #186664
square
#3D1866 #66181A #416618 #186664
split-complementary
#3D1866 #666418 #1A6618
monochromatic
#0F0619 #1F0C34 #3D1866 #5B2498 #782FC9

Accessibility & contrast

On white

13.81
#3D1866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3D1866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1866
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1866#FFFFFF#000000##FFFFFF
##3D18661.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#342B3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d1866;
/* rgb */ color: rgb(61, 24, 102);
/* oklch */ color: oklch(31.2% 0.129 300.7);
Tailwind
colors: {
  custom: {
    50: '#775992',
    500: '#3d1866',
    950: '#000000',
  },
}
SCSS
$custom: #3d1866;
$custom-light: #775992;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1866",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 268.462,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31188,
    "c": 0.12858,
    "h": 300.7
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#3D1866
secondary
#6F9C3E
accent
#E54398
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D1866

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

Preview Lab → · Contrast checker → · Palette generator →

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