#3E1657#3E1657

#3E1657 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.114 H 309.3°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#3E1657
RGBrgb(62, 22, 87)
HSLhsl(277, 60%, 21%)
HSVhsv(277, 75%, 34%)
CMYKcmyk(28.7%, 74.7%, 0%, 65.9%)
CIE-LABlab(16.92, 31.92, -31.15)
CIE-LCHlch(16.92, 44.60, 315.70°)
OKLaboklab(29.79% 0.0722 -0.0881)
OKLCHoklch(29.79% 0.114 309.3)
XYZxyz(3.9935, 2.2861, 9.2459)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1657 #2F5716
analogous
#1E1657 #3E1657 #571650
triadic
#3E1657 #573E16 #16573E
tetradic
#3E1657 #571E16 #2F5716 #165057
square
#3E1657 #571E16 #2F5716 #165057
split-complementary
#3E1657 #505716 #16571E
monochromatic
#110618 #1B0A26 #3E1657 #612288 #842FB9

Accessibility & contrast

On white

14.41
#3E1657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3E1657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1657
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1657#FFFFFF#000000##FFFFFF
##3E16571.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#092A56
Tritanopia (blue-blind)
#3A2434
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1657;
/* rgb */ color: rgb(62, 22, 87);
/* oklch */ color: oklch(29.8% 0.114 309.3);
Tailwind
colors: {
  custom: {
    50: '#765787',
    500: '#3e1657',
    950: '#000000',
  },
}
SCSS
$custom: #3e1657;
$custom-light: #765787;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1657",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 276.923,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29788,
    "c": 0.11391,
    "h": 309.3
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#3E1657
secondary
#5B8E3A
accent
#E34582
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E1657

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

Preview Lab → · Contrast checker → · Palette generator →

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