#3E1B8F#3E1B8F

#3E1B8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.173 H 287.7°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#3E1B8F
RGBrgb(62, 27, 143)
HSLhsl(258, 68%, 33%)
HSVhsv(258, 81%, 56%)
CMYKcmyk(56.6%, 81.1%, 0%, 43.9%)
CIE-LABlab(22.97, 44.91, -57.41)
CIE-LCHlch(22.97, 72.89, 308.04°)
OKLaboklab(35.63% 0.0528 -0.1652)
OKLCHoklch(35.63% 0.173 287.7)
XYZxyz(7.3350, 3.7908, 26.3265)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B8F #6C8F1B
analogous
#1B328F #3E1B8F #781B8F
triadic
#3E1B8F #8F3E1B #1B8F3E
tetradic
#3E1B8F #8F1B32 #6C8F1B #1B8F78
square
#3E1B8F #8F1B32 #6C8F1B #1B8F78
split-complementary
#3E1B8F #8F781B #328F1B
monochromatic
#110828 #28115C #3E1B8F #5425C2 #7548DC

Accessibility & contrast

On white

11.94
#3E1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B8F
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B8F#FFFFFF#000000##FFFFFF
##3E1B8F1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#1A3D55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1b8f;
/* rgb */ color: rgb(62, 27, 143);
/* oklch */ color: oklch(35.6% 0.173 287.7);
Tailwind
colors: {
  custom: {
    50: '#7d5db1',
    500: '#3e1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b8f;
$custom-light: #7d5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b8f",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 258.103,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35634,
    "c": 0.17349,
    "h": 287.7
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#3E1B8F
secondary
#9ABE48
accent
#EB3DB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3E1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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