#3D1474#3D1474

#3D1474 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.149 H 296.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#3D1474
RGBrgb(61, 20, 116)
HSLhsl(266, 71%, 27%)
HSVhsv(266, 83%, 45%)
CMYKcmyk(47.4%, 82.8%, 0%, 54.5%)
CIE-LABlab(19.03, 40.36, -46.82)
CIE-LCHlch(19.03, 61.81, 310.76°)
OKLaboklab(32.04% 0.0655 -0.1342)
OKLCHoklch(32.04% 0.149 296)
XYZxyz(5.3262, 2.7532, 16.7704)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1474 #4B7414
analogous
#141B74 #3D1474 #6D1474
triadic
#3D1474 #743D14 #14743D
tetradic
#3D1474 #74141B #4B7414 #14746D
square
#3D1474 #74141B #4B7414 #14746D
split-complementary
#3D1474 #746D14 #1B7414
monochromatic
#0E051A #220B40 #3D1474 #581DA8 #7428DA

Accessibility & contrast

On white

13.54
#3D1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3D1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1474
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1474#FFFFFF#000000##FFFFFF
##3D14741.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#2E2F44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3d1474;
/* rgb */ color: rgb(61, 20, 116);
/* oklch */ color: oklch(32.0% 0.149 296.0);
Tailwind
colors: {
  custom: {
    50: '#79579d',
    500: '#3d1474',
    950: '#000000',
  },
}
SCSS
$custom: #3d1474;
$custom-light: #79579d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1474",
  "rgb": {
    "r": 61,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 265.625,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32041,
    "c": 0.14931,
    "h": 296
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#3D1474
secondary
#7AAA3A
accent
#ED3AA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1474

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

Preview Lab → · Contrast checker → · Palette generator →

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