#3D1154#3D1154

#3D1154 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.8% C 0.117 H 311.1°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#3D1154
RGBrgb(61, 17, 84)
HSLhsl(279, 66%, 20%)
HSVhsv(279, 80%, 33%)
CMYKcmyk(27.4%, 79.8%, 0%, 67.1%)
CIE-LABlab(15.66, 33.37, -31.16)
CIE-LCHlch(15.66, 45.66, 316.95°)
OKLaboklab(28.78% 0.077 -0.0882)
OKLCHoklch(28.78% 0.117 311.1)
XYZxyz(3.7248, 2.0332, 8.5820)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1154 #285411
analogous
#1B1154 #3D1154 #54114A
triadic
#3D1154 #543D11 #11543D
tetradic
#3D1154 #541B11 #285411 #114A54
square
#3D1154 #541B11 #285411 #114A54
split-complementary
#3D1154 #4A5411 #11541B
monochromatic
#120519 #180721 #3D1154 #621B87 #8726BA

Accessibility & contrast

On white

14.93
#3D1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3D1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1154
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1154#FFFFFF#000000##FFFFFF
##3D11541.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#062853
Tritanopia (blue-blind)
#3A2031
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3d1154;
/* rgb */ color: rgb(61, 17, 84);
/* oklch */ color: oklch(28.8% 0.117 311.1);
Tailwind
colors: {
  custom: {
    50: '#765485',
    500: '#3d1154',
    950: '#000000',
  },
}
SCSS
$custom: #3d1154;
$custom-light: #765485;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1154",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 279.403,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2878,
    "c": 0.11706,
    "h": 311.1
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#3D1154
secondary
#528D34
accent
#E93F79
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1154

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

Preview Lab → · Contrast checker → · Palette generator →

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