#3E2C8A#3E2C8A

#3E2C8A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.148 H 285.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#3E2C8A
RGBrgb(62, 44, 138)
HSLhsl(251, 52%, 36%)
HSVhsv(251, 68%, 54%)
CMYKcmyk(55.1%, 68.1%, 0%, 45.9%)
CIE-LABlab(25.74, 34.28, -49.75)
CIE-LCHlch(25.74, 60.41, 304.57°)
OKLaboklab(37.46% 0.0397 -0.1429)
OKLCHoklch(37.46% 0.148 285.5)
XYZxyz(7.4734, 4.6601, 24.5455)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2C8A #788A2C
analogous
#2C498A #3E2C8A #6D2C8A
triadic
#3E2C8A #8A3E2C #2C8A3E
tetradic
#3E2C8A #8A2C49 #788A2C #2C8A6D
square
#3E2C8A #8A2C49 #788A2C #2C8A6D
split-complementary
#3E2C8A #8A6D2C #498A2C
monochromatic
#140E2D #291D5C #3E2C8A #533BB8 #7763CD

Accessibility & contrast

On white

10.87
#3E2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3E2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2C8A
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2C8A#FFFFFF#000000##FFFFFF
##3E2C8A1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#1E4457
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2c8a;
/* rgb */ color: rgb(62, 44, 138);
/* oklch */ color: oklch(37.5% 0.148 285.5);
Tailwind
colors: {
  custom: {
    50: '#7b66ad',
    500: '#3e2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #3e2c8a;
$custom-light: #7b66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2c8a",
  "rgb": {
    "r": 62,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 251.489,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37455,
    "c": 0.14831,
    "h": 285.5
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#3E2C8A
secondary
#A3B45E
accent
#DB4DC0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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