#3D1254#3D1254

#3D1254 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.116 H 310.9°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#3D1254
RGBrgb(61, 18, 84)
HSLhsl(279, 65%, 20%)
HSVhsv(279, 79%, 33%)
CMYKcmyk(27.4%, 78.6%, 0%, 67.1%)
CIE-LABlab(15.82, 32.90, -30.90)
CIE-LCHlch(15.82, 45.14, 316.80°)
OKLaboklab(28.9% 0.0758 -0.0874)
OKLCHoklch(28.9% 0.116 310.9)
XYZxyz(3.7407, 2.0649, 8.5873)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1254 #295412
analogous
#1C1254 #3D1254 #54124A
triadic
#3D1254 #543D12 #12543D
tetradic
#3D1254 #541C12 #295412 #124A54
square
#3D1254 #541C12 #295412 #124A54
split-complementary
#3D1254 #4A5412 #12541C
monochromatic
#120519 #180722 #3D1254 #621D86 #8628B9

Accessibility & contrast

On white

14.86
#3D1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1254
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1254#FFFFFF#000000##FFFFFF
##3D12541.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1254;
/* rgb */ color: rgb(61, 18, 84);
/* oklch */ color: oklch(28.9% 0.116 310.9);
Tailwind
colors: {
  custom: {
    50: '#755485',
    500: '#3d1254',
    950: '#000000',
  },
}
SCSS
$custom: #3d1254;
$custom-light: #755485;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1254",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 279.091,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.28897,
    "c": 0.11573,
    "h": 310.9
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#3D1254
secondary
#548D35
accent
#E8407B
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1254

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

Preview Lab → · Contrast checker → · Palette generator →

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