#3D1275#3D1275

#3D1275 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.152 H 295.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#3D1275
RGBrgb(61, 18, 117)
HSLhsl(266, 73%, 26%)
HSVhsv(266, 85%, 46%)
CMYKcmyk(47.9%, 84.6%, 0%, 54.1%)
CIE-LABlab(18.84, 41.47, -47.77)
CIE-LCHlch(18.84, 63.26, 310.96°)
OKLaboklab(31.94% 0.0667 -0.137)
OKLCHoklch(31.94% 0.152 295.9)
XYZxyz(5.3508, 2.7089, 17.0671)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1275 #4A7512
analogous
#121875 #3D1275 #6F1275
triadic
#3D1275 #753D12 #12753D
tetradic
#3D1275 #751218 #4A7512 #12756F
square
#3D1275 #751218 #4A7512 #12756F
split-complementary
#3D1275 #756F12 #187512
monochromatic
#0E041B #210A40 #3D1275 #591AAA #7524DD

Accessibility & contrast

On white

13.62
#3D1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3D1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1275
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1275#FFFFFF#000000##FFFFFF
##3D12751.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#2D2F44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d1275;
/* rgb */ color: rgb(61, 18, 117);
/* oklch */ color: oklch(31.9% 0.152 295.9);
Tailwind
colors: {
  custom: {
    50: '#79579e',
    500: '#3d1275',
    950: '#000000',
  },
}
SCSS
$custom: #3d1275;
$custom-light: #79579e;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1275",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 266.061,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3194,
    "c": 0.15233,
    "h": 295.9
  },
  "luminance": 0.02709
}

Semantic roles & 50–950 ramp

primary
#3D1275
secondary
#79AC37
accent
#F038A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1275

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

Preview Lab → · Contrast checker → · Palette generator →

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