#3E1855#3E1855

#3E1855 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.109 H 310.0°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#3E1855
RGBrgb(62, 24, 85)
HSLhsl(277, 56%, 21%)
HSVhsv(277, 72%, 33%)
CMYKcmyk(27.1%, 71.8%, 0%, 66.7%)
CIE-LABlab(17.15, 30.35, -29.43)
CIE-LCHlch(17.15, 42.28, 315.88°)
OKLaboklab(29.9% 0.0698 -0.0831)
OKLCHoklch(29.9% 0.109 310)
XYZxyz(3.9526, 2.3334, 8.8347)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1855 #2F5518
analogous
#201855 #3E1855 #55184E
triadic
#3E1855 #553E18 #18553E
tetradic
#3E1855 #552018 #2F5518 #184E55
square
#3E1855 #552018 #2F5518 #184E55
split-complementary
#3E1855 #4E5518 #185520
monochromatic
#110718 #1B0B25 #3E1855 #612585 #8433B4

Accessibility & contrast

On white

14.32
#3E1855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3E1855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1855
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1855#FFFFFF#000000##FFFFFF
##3E18551.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#0F2B54
Tritanopia (blue-blind)
#3B2534
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1855;
/* rgb */ color: rgb(62, 24, 85);
/* oklch */ color: oklch(29.9% 0.109 310.0);
Tailwind
colors: {
  custom: {
    50: '#765885',
    500: '#3e1855',
    950: '#000000',
  },
}
SCSS
$custom: #3e1855;
$custom-light: #765885;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1855",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 277.377,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.299,
    "c": 0.10857,
    "h": 310
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#3E1855
secondary
#5B8C3D
accent
#DF4981
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E1855

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

Preview Lab → · Contrast checker → · Palette generator →

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