#3E2A8F#3E2A8F

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

Color values

HEX#3E2A8F
RGBrgb(62, 42, 143)
HSLhsl(252, 55%, 36%)
HSVhsv(252, 71%, 56%)
CMYKcmyk(56.6%, 70.6%, 0%, 43.9%)
CIE-LABlab(25.75, 37.05, -52.84)
CIE-LCHlch(25.75, 64.53, 305.04°)
OKLaboklab(37.6% 0.0408 -0.152)
OKLCHoklch(37.6% 0.157 285)
XYZxyz(7.7710, 4.6628, 26.4718)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A8F #7B8F2A
analogous
#2A498F #3E2A8F #712A8F
triadic
#3E2A8F #8F3E2A #2A8F3E
tetradic
#3E2A8F #8F2A49 #7B8F2A #2A8F71
square
#3E2A8F #8F2A49 #7B8F2A #2A8F71
split-complementary
#3E2A8F #8F712A #498F2A
monochromatic
#150E30 #291C60 #3E2A8F #5338BE #7862D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E2A8F#FFFFFF#000000##FFFFFF
##3E2A8F1.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)
#004092
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#194459
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2a8f;
/* rgb */ color: rgb(62, 42, 143);
/* oklch */ color: oklch(37.6% 0.157 285.0);
Tailwind
colors: {
  custom: {
    50: '#7c65b1',
    500: '#3e2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a8f;
$custom-light: #7c65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a8f",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 251.881,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37598,
    "c": 0.15736,
    "h": 285
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#3E2A8F
secondary
#A5B75E
accent
#DE4AC1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3E2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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