#3D1273#3D1273

#3D1273 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.150 H 296.7°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#3D1273
RGBrgb(61, 18, 115)
HSLhsl(267, 73%, 26%)
HSVhsv(267, 84%, 45%)
CMYKcmyk(47%, 84.3%, 0%, 54.9%)
CIE-LABlab(18.64, 40.93, -46.81)
CIE-LCHlch(18.64, 62.18, 311.17°)
OKLaboklab(31.74% 0.0674 -0.1342)
OKLCHoklch(31.74% 0.15 296.7)
XYZxyz(5.2345, 2.6624, 16.4544)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1273 #487312
analogous
#121773 #3D1273 #6D1273
triadic
#3D1273 #733D12 #12733D
tetradic
#3D1273 #731217 #487312 #12736D
square
#3D1273 #731217 #487312 #12736D
split-complementary
#3D1273 #736D12 #177312
monochromatic
#0E041A #210A3E #3D1273 #591AA8 #7523DD

Accessibility & contrast

On white

13.70
#3D1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3D1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1273
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1273#FFFFFF#000000##FFFFFF
##3D12731.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#2E2E43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d1273;
/* rgb */ color: rgb(61, 18, 115);
/* oklch */ color: oklch(31.7% 0.150 296.7);
Tailwind
colors: {
  custom: {
    50: '#79569c',
    500: '#3d1273',
    950: '#000000',
  },
}
SCSS
$custom: #3d1273;
$custom-light: #79569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1273",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 266.598,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3174,
    "c": 0.15013,
    "h": 296.7
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#3D1273
secondary
#77AA37
accent
#F0389E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1273

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

Preview Lab → · Contrast checker → · Palette generator →

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