#3E1257#3E1257

#3E1257 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.3% C 0.119 H 310.0°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#3E1257
RGBrgb(62, 18, 87)
HSLhsl(278, 66%, 21%)
HSVhsv(278, 79%, 34%)
CMYKcmyk(28.7%, 79.3%, 0%, 65.9%)
CIE-LABlab(16.23, 33.87, -32.26)
CIE-LCHlch(16.23, 46.78, 316.39°)
OKLaboklab(29.3% 0.0768 -0.0914)
OKLCHoklch(29.3% 0.119 310)
XYZxyz(3.9229, 2.1449, 9.2223)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1257 #2B5712
analogous
#1B1257 #3E1257 #57124D
triadic
#3E1257 #573E12 #12573E
tetradic
#3E1257 #571B12 #2B5712 #124D57
square
#3E1257 #571B12 #2B5712 #124D57
split-complementary
#3E1257 #4D5712 #12571B
monochromatic
#120519 #1A0824 #3E1257 #621C8A #8627BC

Accessibility & contrast

On white

14.70
#3E1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3E1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1257
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1257#FFFFFF#000000##FFFFFF
##3E12571.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#042956
Tritanopia (blue-blind)
#3A2233
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3e1257;
/* rgb */ color: rgb(62, 18, 87);
/* oklch */ color: oklch(29.3% 0.119 310.0);
Tailwind
colors: {
  custom: {
    50: '#765587',
    500: '#3e1257',
    950: '#000000',
  },
}
SCSS
$custom: #3e1257;
$custom-light: #765587;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1257",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 278.261,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29295,
    "c": 0.1194,
    "h": 310
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#3E1257
secondary
#569035
accent
#E93F7D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E1257

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

Preview Lab → · Contrast checker → · Palette generator →

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