#3D178E#3D178E

#3D178E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.176 H 287.9°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3D178E
RGBrgb(61, 23, 142)
HSLhsl(259, 72%, 32%)
HSVhsv(259, 84%, 56%)
CMYKcmyk(57%, 83.8%, 0%, 44.3%)
CIE-LABlab(22.15, 46.25, -58.14)
CIE-LCHlch(22.15, 74.29, 308.50°)
OKLaboklab(35.01% 0.0541 -0.1673)
OKLCHoklch(35.01% 0.176 287.9)
XYZxyz(7.1119, 3.5575, 25.8979)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D178E #688E17
analogous
#172C8E #3D178E #79178E
triadic
#3D178E #8E3D17 #178E3D
tetradic
#3D178E #8E172C #688E17 #178E79
square
#3D178E #8E172C #688E17 #178E79
split-complementary
#3D178E #8E7917 #2C8E17
monochromatic
#100625 #260E59 #3D178E #5420C3 #733FE0

Accessibility & contrast

On white

12.27
#3D178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3D178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D178E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D178E#FFFFFF#000000##FFFFFF
##3D178E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#193B54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d178e;
/* rgb */ color: rgb(61, 23, 142);
/* oklch */ color: oklch(35.0% 0.176 287.9);
Tailwind
colors: {
  custom: {
    50: '#7d5bb0',
    500: '#3d178e',
    950: '#000000',
  },
}
SCSS
$custom: #3d178e;
$custom-light: #7d5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d178e",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 259.16,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.17589,
    "h": 287.9
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#3D178E
secondary
#97C040
accent
#EF39B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D178E

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

Preview Lab → · Contrast checker → · Palette generator →

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