#3E1BA8#3E1BA8

#3E1BA8 is a dark, highly saturated violet. Relative luminance 0.046; OKLCH L 38.3% C 0.202 H 282.6°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#3E1BA8
RGBrgb(62, 27, 168)
HSLhsl(255, 72%, 38%)
HSVhsv(255, 84%, 66%)
CMYKcmyk(63.1%, 83.9%, 0%, 34.1%)
CIE-LABlab(25.67, 51.99, -68.27)
CIE-LCHlch(25.67, 85.81, 307.29°)
OKLaboklab(38.3% 0.0442 -0.1969)
OKLCHoklch(38.3% 0.202 282.6)
XYZxyz(9.4442, 4.6345, 37.4351)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1BA8 #85A81B
analogous
#1B3EA8 #3E1BA8 #851BA8
triadic
#3E1BA8 #A83E1B #1BA83E
tetradic
#3E1BA8 #A81B3E #85A81B #1BA885
square
#3E1BA8 #A81B3E #85A81B #1BA885
split-complementary
#3E1BA8 #A8851B #3EA81B
monochromatic
#170A3F #2B1373 #3E1BA8 #5224DC #7C59E4

Accessibility & contrast

On white

10.90
#3E1BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1BA8
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1BA8#FFFFFF#000000##FFFFFF
##3E1BA81.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e1ba8;
/* rgb */ color: rgb(62, 27, 168);
/* oklch */ color: oklch(38.3% 0.202 282.6);
Tailwind
colors: {
  custom: {
    50: '#825ec3',
    500: '#3e1ba8',
    950: '#000000',
  },
}
SCSS
$custom: #3e1ba8;
$custom-light: #825ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1ba8",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 254.894,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38297,
    "c": 0.20181,
    "h": 282.6
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#3E1BA8
secondary
#ACC857
accent
#EF39C2
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3E1BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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