#3E2A98#3E2A98

#3E2A98 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.169 H 283.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#3E2A98
RGBrgb(62, 42, 152)
HSLhsl(251, 57%, 38%)
HSVhsv(251, 72%, 60%)
CMYKcmyk(59.2%, 72.4%, 0%, 40.4%)
CIE-LABlab(26.58, 39.88, -57.02)
CIE-LCHlch(26.58, 69.59, 304.97°)
OKLaboklab(38.45% 0.0391 -0.1642)
OKLCHoklch(38.45% 0.169 283.4)
XYZxyz(8.4803, 4.9465, 30.2076)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A98 #84982A
analogous
#2A4D98 #3E2A98 #752A98
triadic
#3E2A98 #983E2A #2A983E
tetradic
#3E2A98 #982A4D #84982A #2A9875
square
#3E2A98 #982A4D #84982A #2A9875
split-complementary
#3E2A98 #98752A #4D982A
monochromatic
#171038 #2A1D68 #3E2A98 #5237C8 #7B67D5

Accessibility & contrast

On white

10.56
#3E2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3E2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A98
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A98#FFFFFF#000000##FFFFFF
##3E2A981.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#08485E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e2a98;
/* rgb */ color: rgb(62, 42, 152);
/* oklch */ color: oklch(38.4% 0.169 283.4);
Tailwind
colors: {
  custom: {
    50: '#7e66b7',
    500: '#3e2a98',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a98;
$custom-light: #7e66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a98",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 250.909,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38445,
    "c": 0.16882,
    "h": 283.4
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#3E2A98
secondary
#ABBB62
accent
#E048C4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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