#3D2189#3D2189

#3D2189 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.160 H 287.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3D2189
RGBrgb(61, 33, 137)
HSLhsl(256, 61%, 33%)
HSVhsv(256, 76%, 54%)
CMYKcmyk(55.5%, 75.9%, 0%, 46.3%)
CIE-LABlab(23.29, 40.05, -53.15)
CIE-LCHlch(23.29, 66.55, 307.00°)
OKLaboklab(35.65% 0.0485 -0.1529)
OKLCHoklch(35.65% 0.16 287.6)
XYZxyz(6.9823, 3.8856, 24.0441)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2189 #6D8921
analogous
#213989 #3D2189 #712189
triadic
#3D2189 #893D21 #21893D
tetradic
#3D2189 #892139 #6D8921 #218971
square
#3D2189 #892139 #6D8921 #218971
split-complementary
#3D2189 #897121 #398921
monochromatic
#110926 #271558 #3D2189 #532DBA #7350D5

Accessibility & contrast

On white

11.82
#3D2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3D2189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2189
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2189#FFFFFF#000000##FFFFFF
##3D21891.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#1E3E53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d2189;
/* rgb */ color: rgb(61, 33, 137);
/* oklch */ color: oklch(35.7% 0.160 287.6);
Tailwind
colors: {
  custom: {
    50: '#7b5fac',
    500: '#3d2189',
    950: '#000000',
  },
}
SCSS
$custom: #3d2189;
$custom-light: #7b5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2189",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 256.154,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35651,
    "c": 0.16036,
    "h": 287.6
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#3D2189
secondary
#9BB84E
accent
#E444B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D2189

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

Preview Lab → · Contrast checker → · Palette generator →

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