#3D2187#3D2187

#3D2187 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.158 H 288.1°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#3D2187
RGBrgb(61, 33, 135)
HSLhsl(256, 61%, 33%)
HSVhsv(256, 76%, 53%)
CMYKcmyk(54.8%, 75.6%, 0%, 47.1%)
CIE-LABlab(23.10, 39.46, -52.21)
CIE-LCHlch(23.10, 65.44, 307.08°)
OKLaboklab(35.46% 0.049 -0.1501)
OKLCHoklch(35.46% 0.158 288.1)
XYZxyz(6.8402, 3.8287, 23.2956)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2187 #6B8721
analogous
#213887 #3D2187 #702187
triadic
#3D2187 #873D21 #21873D
tetradic
#3D2187 #872138 #6B8721 #218770
square
#3D2187 #872138 #6B8721 #218770
split-complementary
#3D2187 #877021 #388721
monochromatic
#110925 #271556 #3D2187 #532DB8 #734FD4

Accessibility & contrast

On white

11.89
#3D2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D2187
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2187#FFFFFF#000000##FFFFFF
##3D21871.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#203D52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d2187;
/* rgb */ color: rgb(61, 33, 135);
/* oklch */ color: oklch(35.5% 0.158 288.1);
Tailwind
colors: {
  custom: {
    50: '#7b5fab',
    500: '#3d2187',
    950: '#000000',
  },
}
SCSS
$custom: #3d2187;
$custom-light: #7b5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2187",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 256.471,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35457,
    "c": 0.1579,
    "h": 288.1
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D2187

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

Preview Lab → · Contrast checker → · Palette generator →

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