#3D2188#3D2188

#3D2188 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.159 H 287.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#3D2188
RGBrgb(61, 33, 136)
HSLhsl(256, 61%, 33%)
HSVhsv(256, 76%, 53%)
CMYKcmyk(55.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(23.19, 39.76, -52.68)
CIE-LCHlch(23.19, 66.00, 307.04°)
OKLaboklab(35.55% 0.0487 -0.1515)
OKLCHoklch(35.55% 0.159 287.8)
XYZxyz(6.9109, 3.8570, 23.6681)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2188 #6C8821
analogous
#213888 #3D2188 #702188
triadic
#3D2188 #883D21 #21883D
tetradic
#3D2188 #882138 #6C8821 #218870
square
#3D2188 #882138 #6C8821 #218870
split-complementary
#3D2188 #887021 #388821
monochromatic
#110925 #271557 #3D2188 #532DB9 #734FD4

Accessibility & contrast

On white

11.86
#3D2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3D2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2188
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2188#FFFFFF#000000##FFFFFF
##3D21881.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#1F3D53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d2188;
/* rgb */ color: rgb(61, 33, 136);
/* oklch */ color: oklch(35.6% 0.159 287.8);
Tailwind
colors: {
  custom: {
    50: '#7b5fac',
    500: '#3d2188',
    950: '#000000',
  },
}
SCSS
$custom: #3d2188;
$custom-light: #7b5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2188",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 256.311,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35554,
    "c": 0.15914,
    "h": 287.8
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#3D2188
secondary
#9BB84D
accent
#E444B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D2188

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

Preview Lab → · Contrast checker → · Palette generator →

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