#3E145A#3E145A

#3E145A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.120 H 308.1°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#3E145A
RGBrgb(62, 20, 90)
HSLhsl(276, 64%, 22%)
HSVhsv(276, 78%, 35%)
CMYKcmyk(31.1%, 77.8%, 0%, 64.7%)
CIE-LABlab(16.81, 33.67, -33.34)
CIE-LCHlch(16.81, 47.39, 315.28°)
OKLaboklab(29.78% 0.074 -0.0946)
OKLCHoklch(29.78% 0.12 308.1)
XYZxyz(4.0818, 2.2627, 9.8926)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E145A #305A14
analogous
#1B145A #3E145A #5A1453
triadic
#3E145A #5A3E14 #145A3E
tetradic
#3E145A #5A1B14 #305A14 #14535A
square
#3E145A #5A1B14 #305A14 #14535A
split-complementary
#3E145A #535A14 #145A1B
monochromatic
#110619 #1C0928 #3E145A #601F8C #832ABE

Accessibility & contrast

On white

14.46
#3E145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3E145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E145A
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E145A#FFFFFF#000000##FFFFFF
##3E145A1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#012A59
Tritanopia (blue-blind)
#3A2435
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3e145a;
/* rgb */ color: rgb(62, 20, 90);
/* oklch */ color: oklch(29.8% 0.120 308.1);
Tailwind
colors: {
  custom: {
    50: '#775689',
    500: '#3e145a',
    950: '#000000',
  },
}
SCSS
$custom: #3e145a;
$custom-light: #775689;
$custom-dark: #000000;
JSON
{
  "hex": "#3e145a",
  "rgb": {
    "r": 62,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 276,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29784,
    "c": 0.12012,
    "h": 308.1
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#3E145A
secondary
#5C9238
accent
#E74183
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E145A

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

Preview Lab → · Contrast checker → · Palette generator →

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