#3E2A9C#3E2A9C

#3E2A9C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.174 H 282.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#3E2A9C
RGBrgb(62, 42, 156)
HSLhsl(251, 58%, 39%)
HSVhsv(251, 73%, 61%)
CMYKcmyk(60.3%, 73.1%, 0%, 38.8%)
CIE-LABlab(26.96, 41.14, -58.85)
CIE-LCHlch(26.96, 71.80, 304.95°)
OKLaboklab(38.83% 0.0383 -0.1696)
OKLCHoklch(38.83% 0.174 282.7)
XYZxyz(8.8135, 5.0798, 31.9621)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A9C #889C2A
analogous
#2A4F9C #3E2A9C #772A9C
triadic
#3E2A9C #9C3E2A #2A9C3E
tetradic
#3E2A9C #9C2A4F #889C2A #2A9C77
square
#3E2A9C #9C2A4F #889C2A #2A9C77
split-complementary
#3E2A9C #9C772A #4F9C2A
monochromatic
#18103C #2B1D6C #3E2A9C #5339CA #7D6AD7

Accessibility & contrast

On white

10.42
#3E2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3E2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A9C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A9C#FFFFFF#000000##FFFFFF
##3E2A9C1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e2a9c;
/* rgb */ color: rgb(62, 42, 156);
/* oklch */ color: oklch(38.8% 0.174 282.7);
Tailwind
colors: {
  custom: {
    50: '#7f66ba',
    500: '#3e2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a9c;
$custom-light: #7f66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a9c",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 250.526,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3883,
    "c": 0.17383,
    "h": 282.7
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#3E2A9C
secondary
#AEBD65
accent
#E147C6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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