#3D1157#3D1157

#3D1157 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.120 H 309.4°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#3D1157
RGBrgb(61, 17, 87)
HSLhsl(278, 67%, 20%)
HSVhsv(278, 80%, 34%)
CMYKcmyk(29.9%, 80.5%, 0%, 65.9%)
CIE-LABlab(15.91, 34.11, -32.79)
CIE-LCHlch(15.91, 47.31, 316.12°)
OKLaboklab(29.03% 0.0764 -0.093)
OKLCHoklch(29.03% 0.12 309.4)
XYZxyz(3.8449, 2.0812, 9.2141)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1157 #2B5711
analogous
#1A1157 #3D1157 #57114E
triadic
#3D1157 #573D11 #11573D
tetradic
#3D1157 #571A11 #2B5711 #114E57
square
#3D1157 #571A11 #2B5711 #114E57
split-complementary
#3D1157 #4E5711 #11571A
monochromatic
#12051A #190724 #3D1157 #611B8A #8525BD

Accessibility & contrast

On white

14.83
#3D1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3D1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1157
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1157#FFFFFF#000000##FFFFFF
##3D11571.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#012856
Tritanopia (blue-blind)
#392233
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3d1157;
/* rgb */ color: rgb(61, 17, 87);
/* oklch */ color: oklch(29.0% 0.120 309.4);
Tailwind
colors: {
  custom: {
    50: '#765487',
    500: '#3d1157',
    950: '#000000',
  },
}
SCSS
$custom: #3d1157;
$custom-light: #765487;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1157",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 277.714,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29033,
    "c": 0.12034,
    "h": 309.4
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#3D1157
secondary
#569034
accent
#EA3E7E
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1157

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

Preview Lab → · Contrast checker → · Palette generator →

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