#3D2B78#3D2B78

#3D2B78 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.6% C 0.125 H 289.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#3D2B78
RGBrgb(61, 43, 120)
HSLhsl(254, 47%, 32%)
HSVhsv(254, 64%, 47%)
CMYKcmyk(49.2%, 64.2%, 0%, 52.9%)
CIE-LABlab(23.92, 28.96, -41.40)
CIE-LCHlch(23.92, 50.52, 304.98°)
OKLaboklab(35.64% 0.0413 -0.1184)
OKLCHoklch(35.64% 0.125 289.2)
XYZxyz(6.1775, 4.0757, 18.2268)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2B78 #66782B
analogous
#2B4078 #3D2B78 #642B78
triadic
#3D2B78 #783D2B #2B783D
tetradic
#3D2B78 #782B40 #66782B #2B7864
square
#3D2B78 #782B40 #66782B #2B7864
split-complementary
#3D2B78 #78642B #40782B
monochromatic
#0F0B1E #261B4B #3D2B78 #543BA5 #725AC4

Accessibility & contrast

On white

11.57
#3D2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3D2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2B78
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2B78#FFFFFF#000000##FFFFFF
##3D2B781.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#2A3D4D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d2b78;
/* rgb */ color: rgb(61, 43, 120);
/* oklch */ color: oklch(35.6% 0.125 289.2);
Tailwind
colors: {
  custom: {
    50: '#7865a0',
    500: '#3d2b78',
    950: '#000000',
  },
}
SCSS
$custom: #3d2b78;
$custom-light: #7865a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2b78",
  "rgb": {
    "r": 61,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 254.026,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3564,
    "c": 0.12536,
    "h": 289.2
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#3D2B78
secondary
#96AA55
accent
#D751B8
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #3D2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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