#3E2D8B#3E2D8B

#3E2D8B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.7% C 0.148 H 285.1°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#3E2D8B
RGBrgb(62, 45, 139)
HSLhsl(251, 51%, 36%)
HSVhsv(251, 68%, 55%)
CMYKcmyk(55.4%, 67.6%, 0%, 45.5%)
CIE-LABlab(26.05, 33.99, -49.87)
CIE-LCHlch(26.05, 60.35, 304.28°)
OKLaboklab(37.71% 0.0386 -0.1432)
OKLCHoklch(37.71% 0.148 285.1)
XYZxyz(7.5838, 4.7646, 24.9411)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2D8B #7A8B2D
analogous
#2D4B8B #3E2D8B #6D2D8B
triadic
#3E2D8B #8B3E2D #2D8B3E
tetradic
#3E2D8B #8B2D4B #7A8B2D #2D8B6D
square
#3E2D8B #8B2D4B #7A8B2D #2D8B6D
split-complementary
#3E2D8B #8B6D2D #4B8B2D
monochromatic
#150F2F #291E5D #3E2D8B #533CB9 #7865CD

Accessibility & contrast

On white

10.75
#3E2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3E2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2D8B
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2D8B#FFFFFF#000000##FFFFFF
##3E2D8B1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#1D4558
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e2d8b;
/* rgb */ color: rgb(62, 45, 139);
/* oklch */ color: oklch(37.7% 0.148 285.1);
Tailwind
colors: {
  custom: {
    50: '#7b67ae',
    500: '#3e2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #3e2d8b;
$custom-light: #7b67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2d8b",
  "rgb": {
    "r": 62,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 250.851,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37705,
    "c": 0.14834,
    "h": 285.1
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#3E2D8B
secondary
#A5B460
accent
#DB4DC1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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