#3D1256#3D1256

#3D1256 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.118 H 309.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#3D1256
RGBrgb(61, 18, 86)
HSLhsl(278, 65%, 20%)
HSVhsv(278, 79%, 34%)
CMYKcmyk(29.1%, 79.1%, 0%, 66.3%)
CIE-LABlab(15.99, 33.40, -31.99)
CIE-LCHlch(15.99, 46.25, 316.23°)
OKLaboklab(29.06% 0.0755 -0.0906)
OKLCHoklch(29.06% 0.118 309.8)
XYZxyz(3.8202, 2.0967, 9.0058)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1256 #2B5612
analogous
#1B1256 #3D1256 #56124D
triadic
#3D1256 #563D12 #12563D
tetradic
#3D1256 #561B12 #2B5612 #124D56
square
#3D1256 #561B12 #2B5612 #124D56
split-complementary
#3D1256 #4D5612 #12561B
monochromatic
#120519 #190723 #3D1256 #611D89 #8527BB

Accessibility & contrast

On white

14.79
#3D1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1256
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1256#FFFFFF#000000##FFFFFF
##3D12561.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1256;
/* rgb */ color: rgb(61, 18, 86);
/* oklch */ color: oklch(29.1% 0.118 309.8);
Tailwind
colors: {
  custom: {
    50: '#765586',
    500: '#3d1256',
    950: '#000000',
  },
}
SCSS
$custom: #3d1256;
$custom-light: #765586;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1256",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 277.941,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29063,
    "c": 0.11796,
    "h": 309.8
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#3D1256
secondary
#568F35
accent
#E83F7E
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1256

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

Preview Lab → · Contrast checker → · Palette generator →

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