#3D2A78#3D2A78

#3D2A78 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.5% C 0.127 H 289.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#3D2A78
RGBrgb(61, 42, 120)
HSLhsl(255, 48%, 32%)
HSVhsv(255, 65%, 47%)
CMYKcmyk(49.2%, 65%, 0%, 52.9%)
CIE-LABlab(23.68, 29.59, -41.78)
CIE-LCHlch(23.68, 51.20, 305.30°)
OKLaboklab(35.47% 0.0424 -0.1195)
OKLCHoklch(35.47% 0.127 289.5)
XYZxyz(6.1416, 4.0039, 18.2149)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2A78 #65782A
analogous
#2A3E78 #3D2A78 #642A78
triadic
#3D2A78 #783D2A #2A783D
tetradic
#3D2A78 #782A3E #65782A #2A7864
square
#3D2A78 #782A3E #65782A #2A7864
split-complementary
#3D2A78 #78642A #3E782A
monochromatic
#0F0A1D #261A4B #3D2A78 #543AA5 #7258C5

Accessibility & contrast

On white

11.66
#3D2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2A78
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2A78#FFFFFF#000000##FFFFFF
##3D2A781.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d2a78;
/* rgb */ color: rgb(61, 42, 120);
/* oklch */ color: oklch(35.5% 0.127 289.5);
Tailwind
colors: {
  custom: {
    50: '#7864a0',
    500: '#3d2a78',
    950: '#000000',
  },
}
SCSS
$custom: #3d2a78;
$custom-light: #7864a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2a78",
  "rgb": {
    "r": 61,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 254.615,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35468,
    "c": 0.12682,
    "h": 289.5
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#3D2A78
secondary
#95AA54
accent
#D850B7
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #3D2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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