#3E1F7B#3E1F7B

#3E1F7B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.145 H 292.3°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#3E1F7B
RGBrgb(62, 31, 123)
HSLhsl(260, 60%, 30%)
HSVhsv(260, 75%, 48%)
CMYKcmyk(49.6%, 74.8%, 0%, 51.8%)
CIE-LABlab(21.70, 37.13, -46.91)
CIE-LCHlch(21.70, 59.82, 308.36°)
OKLaboklab(34.15% 0.0553 -0.1345)
OKLCHoklch(34.15% 0.145 292.3)
XYZxyz(6.0507, 3.4340, 19.0791)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F7B #5C7B1F
analogous
#1F2E7B #3E1F7B #6C1F7B
triadic
#3E1F7B #7B3E1F #1F7B3E
tetradic
#3E1F7B #7B1F2E #5C7B1F #1F7B6C
square
#3E1F7B #7B1F2E #5C7B1F #1F7B6C
split-complementary
#3E1F7B #7B6C1F #2E7B1F
monochromatic
#0D0619 #25134A #3E1F7B #572BAC #7344D0

Accessibility & contrast

On white

12.45
#3E1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3E1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F7B
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F7B#FFFFFF#000000##FFFFFF
##3E1F7B1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#2B374B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1f7b;
/* rgb */ color: rgb(62, 31, 123);
/* oklch */ color: oklch(34.2% 0.145 292.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ea2',
    500: '#3e1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f7b;
$custom-light: #7a5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f7b",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 260.217,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34153,
    "c": 0.14544,
    "h": 292.3
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#3E1F7B
secondary
#8CAE48
accent
#E345AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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