#3D1174#3D1174

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

Color values

HEX#3D1174
RGBrgb(61, 17, 116)
HSLhsl(267, 74%, 26%)
HSVhsv(267, 85%, 45%)
CMYKcmyk(47.4%, 85.3%, 0%, 54.5%)
CIE-LABlab(18.60, 41.60, -47.52)
CIE-LCHlch(18.60, 63.15, 311.20°)
OKLaboklab(31.75% 0.0678 -0.1362)
OKLCHoklch(31.75% 0.152 296.4)
XYZxyz(5.2765, 2.6538, 16.7538)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1174 #487411
analogous
#111674 #3D1174 #6E1174
triadic
#3D1174 #743D11 #11743D
tetradic
#3D1174 #741116 #487411 #11746E
square
#3D1174 #741116 #487411 #11746E
split-complementary
#3D1174 #746E11 #167411
monochromatic
#0E041B #21093F #3D1174 #5919A9 #7521DE

Accessibility & contrast

On white

13.72
#3D1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1174
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1174#FFFFFF#000000##FFFFFF
##3D11741.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#2E2E44
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d1174;
/* rgb */ color: rgb(61, 17, 116);
/* oklch */ color: oklch(31.7% 0.152 296.4);
Tailwind
colors: {
  custom: {
    50: '#79569d',
    500: '#3d1174',
    950: '#000000',
  },
}
SCSS
$custom: #3d1174;
$custom-light: #79569d;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1174",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 266.667,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31745,
    "c": 0.15214,
    "h": 296.4
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#3D1174
secondary
#77AB36
accent
#F1379E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D1174

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

Preview Lab → · Contrast checker → · Palette generator →

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