#3E176A#3E176A

#3E176A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.135 H 300.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3E176A
RGBrgb(62, 23, 106)
HSLhsl(268, 64%, 25%)
HSVhsv(268, 78%, 42%)
CMYKcmyk(41.5%, 78.3%, 0%, 58.4%)
CIE-LABlab(18.70, 36.43, -40.85)
CIE-LCHlch(18.70, 54.74, 311.73°)
OKLaboklab(31.55% 0.0673 -0.1167)
OKLCHoklch(31.55% 0.135 300)
XYZxyz(4.8939, 2.6775, 13.8918)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E176A #436A17
analogous
#17196A #3E176A #67176A
triadic
#3E176A #6A3E17 #176A3E
tetradic
#3E176A #6A1719 #436A17 #176A67
square
#3E176A #6A1719 #436A17 #176A67
split-complementary
#3E176A #6A6717 #196A17
monochromatic
#0F0519 #210C38 #3E176A #5B229C #792DCF

Accessibility & contrast

On white

13.68
#3E176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E176A
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E176A#FFFFFF#000000##FFFFFF
##3E176A1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#342C3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e176a;
/* rgb */ color: rgb(62, 23, 106);
/* oklch */ color: oklch(31.6% 0.135 300.0);
Tailwind
colors: {
  custom: {
    50: '#785895',
    500: '#3e176a',
    950: '#000000',
  },
}
SCSS
$custom: #3e176a;
$custom-light: #785895;
$custom-dark: #000000;
JSON
{
  "hex": "#3e176a",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 268.193,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31554,
    "c": 0.13471,
    "h": 300
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#3E176A
secondary
#71A03D
accent
#E74099
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E176A

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

Preview Lab → · Contrast checker → · Palette generator →

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