#3D1988#3D1988

#3D1988 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.167 H 289.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#3D1988
RGBrgb(61, 25, 136)
HSLhsl(259, 69%, 32%)
HSVhsv(259, 82%, 53%)
CMYKcmyk(55.1%, 81.6%, 0%, 46.7%)
CIE-LABlab(21.82, 43.70, -54.94)
CIE-LCHlch(21.82, 70.20, 308.50°)
OKLaboklab(34.59% 0.0549 -0.158)
OKLCHoklch(34.59% 0.167 289.2)
XYZxyz(6.7147, 3.4646, 23.6027)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1988 #648819
analogous
#192D88 #3D1988 #751988
triadic
#3D1988 #883D19 #19883D
tetradic
#3D1988 #88192D #648819 #198875
square
#3D1988 #88192D #648819 #198875
split-complementary
#3D1988 #887519 #2D8819
monochromatic
#0F0621 #260F54 #3D1988 #5423BC #7240DC

Accessibility & contrast

On white

12.40
#3D1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3D1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1988
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1988#FFFFFF#000000##FFFFFF
##3D19881.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#1F3A51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1988;
/* rgb */ color: rgb(61, 25, 136);
/* oklch */ color: oklch(34.6% 0.167 289.2);
Tailwind
colors: {
  custom: {
    50: '#7c5bac',
    500: '#3d1988',
    950: '#000000',
  },
}
SCSS
$custom: #3d1988;
$custom-light: #7c5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1988",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 259.459,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3459,
    "c": 0.16731,
    "h": 289.2
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#3D1988
secondary
#94BB41
accent
#EC3CB3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1988

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

Preview Lab → · Contrast checker → · Palette generator →

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