#3E1852#3E1852

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

Color values

HEX#3E1852
RGBrgb(62, 24, 82)
HSLhsl(279, 55%, 21%)
HSVhsv(279, 71%, 32%)
CMYKcmyk(24.4%, 70.7%, 0%, 67.8%)
CIE-LABlab(16.93, 29.59, -27.76)
CIE-LCHlch(16.93, 40.57, 316.82°)
OKLaboklab(29.67% 0.0701 -0.0782)
OKLCHoklch(29.67% 0.105 311.8)
XYZxyz(3.8360, 2.2867, 8.2203)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1852 #2C5218
analogous
#211852 #3E1852 #521849
triadic
#3E1852 #523E18 #18523E
tetradic
#3E1852 #522118 #2C5218 #184952
square
#3E1852 #522118 #2C5218 #184952
split-complementary
#3E1852 #495218 #185221
monochromatic
#120718 #1A0A23 #3E1852 #622681 #8634B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E1852#FFFFFF#000000##FFFFFF
##3E18521.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)
#002854
Deuteranopia (green-blind)
#132A51
Tritanopia (blue-blind)
#3C2332
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1852;
/* rgb */ color: rgb(62, 24, 82);
/* oklch */ color: oklch(29.7% 0.105 311.8);
Tailwind
colors: {
  custom: {
    50: '#765883',
    500: '#3e1852',
    950: '#000000',
  },
}
SCSS
$custom: #3e1852;
$custom-light: #765883;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1852",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 279.31,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29669,
    "c": 0.10502,
    "h": 311.8
  },
  "luminance": 0.02287
}

Semantic roles & 50–950 ramp

primary
#3E1852
secondary
#57893D
accent
#DE4A7D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #3E1852

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

Preview Lab → · Contrast checker → · Palette generator →

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