#3E104B#3E104B

#3E104B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.109 H 317.8°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#3E104B
RGBrgb(62, 16, 75)
HSLhsl(287, 65%, 18%)
HSVhsv(287, 79%, 29%)
CMYKcmyk(17.3%, 78.7%, 0%, 70.6%)
CIE-LABlab(14.97, 31.93, -26.11)
CIE-LCHlch(14.97, 41.25, 320.72°)
OKLaboklab(28.1% 0.0808 -0.0733)
OKLCHoklch(28.1% 0.109 317.8)
XYZxyz(3.4417, 1.9029, 6.8412)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E104B #1D4B10
analogous
#21104B #3E104B #4B103A
triadic
#3E104B #4B3E10 #104B3E
tetradic
#3E104B #4B2110 #1D4B10 #103A4B
square
#3E104B #4B2110 #1D4B10 #103A4B
split-complementary
#3E104B #3A4B10 #104B21
monochromatic
#150519 #150519 #3E104B #681B7D #9126B0

Accessibility & contrast

On white

15.21
#3E104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3E104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E104B
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E104B#FFFFFF#000000##FFFFFF
##3E104B1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#12274A
Tritanopia (blue-blind)
#3E1C2C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3e104b;
/* rgb */ color: rgb(62, 16, 75);
/* oklch */ color: oklch(28.1% 0.109 317.8);
Tailwind
colors: {
  custom: {
    50: '#76537e',
    500: '#3e104b',
    950: '#000000',
  },
}
SCSS
$custom: #3e104b;
$custom-light: #76537e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e104b",
  "rgb": {
    "r": 62,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 286.78,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28101,
    "c": 0.10914,
    "h": 317.8
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#3E104B
secondary
#448532
accent
#E84065
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3E104B

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

Preview Lab → · Contrast checker → · Palette generator →

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