#3D2F78#3D2F78

#3D2F78 is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.4% C 0.119 H 287.8°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#3D2F78
RGBrgb(61, 47, 120)
HSLhsl(252, 44%, 33%)
HSVhsv(252, 61%, 47%)
CMYKcmyk(49.2%, 60.8%, 0%, 52.9%)
CIE-LABlab(24.89, 26.41, -39.82)
CIE-LCHlch(24.89, 47.79, 303.55°)
OKLaboklab(36.35% 0.0364 -0.1137)
OKLCHoklch(36.35% 0.119 287.8)
XYZxyz(6.3302, 4.3809, 18.2777)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2F78 #6A782F
analogous
#2F4578 #3D2F78 #622F78
triadic
#3D2F78 #783D2F #2F783D
tetradic
#3D2F78 #782F45 #6A782F #2F7862
square
#3D2F78 #782F45 #6A782F #2F7862
split-complementary
#3D2F78 #78622F #45782F
monochromatic
#100D20 #271E4C #3D2F78 #5340A4 #7360C1

Accessibility & contrast

On white

11.19
#3D2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3D2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2F78
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2F78#FFFFFF#000000##FFFFFF
##3D2F781.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#2A404E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d2f78;
/* rgb */ color: rgb(61, 47, 120);
/* oklch */ color: oklch(36.4% 0.119 287.8);
Tailwind
colors: {
  custom: {
    50: '#77689f',
    500: '#3d2f78',
    950: '#000000',
  },
}
SCSS
$custom: #3d2f78;
$custom-light: #77689f;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2f78",
  "rgb": {
    "r": 61,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 251.507,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36353,
    "c": 0.11943,
    "h": 287.8
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#3D2F78
secondary
#99A85B
accent
#D354BB
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060F
muted
#7B7A7E

Preview Lab

Preview with #3D2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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