#3D2271#3D2271

#3D2271 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.129 H 294.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#3D2271
RGBrgb(61, 34, 113)
HSLhsl(261, 54%, 29%)
HSVhsv(261, 70%, 44%)
CMYKcmyk(46%, 69.9%, 0%, 55.7%)
CIE-LABlab(21.31, 32.28, -41.15)
CIE-LCHlch(21.31, 52.30, 308.12°)
OKLaboklab(33.57% 0.0525 -0.1176)
OKLCHoklch(33.57% 0.129 294)
XYZxyz(5.4763, 3.3283, 15.9735)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2271 #567122
analogous
#222F71 #3D2271 #652271
triadic
#3D2271 #713D22 #22713D
tetradic
#3D2271 #71222F #567122 #227165
square
#3D2271 #71222F #567122 #227165
split-complementary
#3D2271 #716522 #2F7122
monochromatic
#0D0718 #241442 #3D2271 #5630A0 #7246C7

Accessibility & contrast

On white

12.61
#3D2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3D2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2271
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2271#FFFFFF#000000##FFFFFF
##3D22711.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#00326F
Tritanopia (blue-blind)
#2E3546
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d2271;
/* rgb */ color: rgb(61, 34, 113);
/* oklch */ color: oklch(33.6% 0.129 294.0);
Tailwind
colors: {
  custom: {
    50: '#785f9a',
    500: '#3d2271',
    950: '#000000',
  },
}
SCSS
$custom: #3d2271;
$custom-light: #785f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2271",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 260.506,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33573,
    "c": 0.12882,
    "h": 294
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#3D2271
secondary
#86A44A
accent
#DD4BAB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3D2271

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

Preview Lab → · Contrast checker → · Palette generator →

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