#3D1868#3D1868

#3D1868 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.131 H 299.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#3D1868
RGBrgb(61, 24, 104)
HSLhsl(268, 63%, 25%)
HSVhsv(268, 77%, 41%)
CMYKcmyk(41.3%, 76.9%, 0%, 59.2%)
CIE-LABlab(18.56, 35.19, -39.78)
CIE-LCHlch(18.56, 53.11, 311.50°)
OKLaboklab(31.37% 0.0652 -0.1136)
OKLCHoklch(31.37% 0.131 299.9)
XYZxyz(4.7492, 2.6448, 13.3543)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1868 #436818
analogous
#181B68 #3D1868 #651868
triadic
#3D1868 #683D18 #18683D
tetradic
#3D1868 #68181B #436818 #186865
square
#3D1868 #68181B #436818 #186865
split-complementary
#3D1868 #686518 #1B6818
monochromatic
#0F0619 #200D36 #3D1868 #5A239A #772FCB

Accessibility & contrast

On white

13.73
#3D1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3D1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1868
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1868#FFFFFF#000000##FFFFFF
##3D18681.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#332C3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d1868;
/* rgb */ color: rgb(61, 24, 104);
/* oklch */ color: oklch(31.4% 0.131 299.9);
Tailwind
colors: {
  custom: {
    50: '#775994',
    500: '#3d1868',
    950: '#000000',
  },
}
SCSS
$custom: #3d1868;
$custom-light: #775994;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1868",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 267.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31368,
    "c": 0.13096,
    "h": 299.9
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#3D1868
secondary
#729E3E
accent
#E6429A
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3D1868

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

Preview Lab → · Contrast checker → · Palette generator →

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