#3D0F56#3D0F56

#3D0F56 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.122 H 310.3°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#3D0F56
RGBrgb(61, 15, 86)
HSLhsl(279, 70%, 20%)
HSVhsv(279, 83%, 34%)
CMYKcmyk(29.1%, 82.6%, 0%, 66.3%)
CIE-LABlab(15.52, 34.74, -32.75)
CIE-LCHlch(15.52, 47.74, 316.69°)
OKLaboklab(28.73% 0.0787 -0.0928)
OKLCHoklch(28.73% 0.122 310.3)
XYZxyz(3.7747, 2.0057, 8.9906)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D0F56 #28560F
analogous
#190F56 #3D0F56 #560F4C
triadic
#3D0F56 #563D0F #0F563D
tetradic
#3D0F56 #56190F #28560F #0F4C56
square
#3D0F56 #56190F #28560F #0F4C56
split-complementary
#3D0F56 #4C560F #0F5619
monochromatic
#12051A #180622 #3D0F56 #62188A #8721BE

Accessibility & contrast

On white

14.99
#3D0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3D0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D0F56
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D0F56#FFFFFF#000000##FFFFFF
##3D0F561.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#392032
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3d0f56;
/* rgb */ color: rgb(61, 15, 86);
/* oklch */ color: oklch(28.7% 0.122 310.3);
Tailwind
colors: {
  custom: {
    50: '#765386',
    500: '#3d0f56',
    950: '#000000',
  },
}
SCSS
$custom: #3d0f56;
$custom-light: #765386;
$custom-dark: #000000;
JSON
{
  "hex": "#3d0f56",
  "rgb": {
    "r": 61,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 278.873,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28732,
    "c": 0.1217,
    "h": 310.3
  },
  "luminance": 0.02006
}

Semantic roles & 50–950 ramp

primary
#3D0F56
secondary
#529031
accent
#ED3B7A
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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