#3E2A9F#3E2A9F

#3E2A9F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.178 H 282.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#3E2A9F
RGBrgb(62, 42, 159)
HSLhsl(250, 58%, 39%)
HSVhsv(250, 74%, 62%)
CMYKcmyk(61%, 73.6%, 0%, 37.6%)
CIE-LABlab(27.25, 42.07, -60.20)
CIE-LCHlch(27.25, 73.45, 304.95°)
OKLaboklab(39.12% 0.0376 -0.1735)
OKLCHoklch(39.12% 0.178 282.2)
XYZxyz(9.0706, 5.1826, 33.3165)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A9F #8B9F2A
analogous
#2A519F #3E2A9F #782A9F
triadic
#3E2A9F #9F3E2A #2A9F3E
tetradic
#3E2A9F #9F2A51 #8B9F2A #2A9F78
square
#3E2A9F #9F2A51 #8B9F2A #2A9F78
split-complementary
#3E2A9F #9F782A #519F2A
monochromatic
#18103E #2B1D6F #3E2A9F #543BCB #7E6BD8

Accessibility & contrast

On white

10.31
#3E2A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3E2A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A9F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A9F#FFFFFF#000000##FFFFFF
##3E2A9F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e2a9f;
/* rgb */ color: rgb(62, 42, 159);
/* oklch */ color: oklch(39.1% 0.178 282.2);
Tailwind
colors: {
  custom: {
    50: '#7f66bc',
    500: '#3e2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a9f;
$custom-light: #7f66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a9f",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 250.256,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39122,
    "c": 0.17757,
    "h": 282.2
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#3E2A9F
secondary
#B0BF66
accent
#E146C7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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