#3E2276#3E2276

#3E2276 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.135 H 293.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#3E2276
RGBrgb(62, 34, 118)
HSLhsl(260, 55%, 30%)
HSVhsv(260, 71%, 46%)
CMYKcmyk(47.5%, 71.2%, 0%, 53.7%)
CIE-LABlab(21.86, 33.98, -43.47)
CIE-LCHlch(21.86, 55.18, 308.02°)
OKLaboklab(34.12% 0.0532 -0.1244)
OKLCHoklch(34.12% 0.135 293.2)
XYZxyz(5.8277, 3.4760, 17.4999)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2276 #5A7622
analogous
#223076 #3E2276 #682276
triadic
#3E2276 #763E22 #22763E
tetradic
#3E2276 #762230 #5A7622 #227668
square
#3E2276 #762230 #5A7622 #227668
split-complementary
#3E2276 #766822 #307622
monochromatic
#0C0718 #251446 #3E2276 #5730A6 #7448CA

Accessibility & contrast

On white

12.39
#3E2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2276
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2276#FFFFFF#000000##FFFFFF
##3E22761.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#2E3749
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e2276;
/* rgb */ color: rgb(62, 34, 118);
/* oklch */ color: oklch(34.1% 0.135 293.2);
Tailwind
colors: {
  custom: {
    50: '#795f9e',
    500: '#3e2276',
    950: '#000000',
  },
}
SCSS
$custom: #3e2276;
$custom-light: #795f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2276",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 260,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34124,
    "c": 0.13533,
    "h": 293.2
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#3E2276
secondary
#8AA94B
accent
#DF49AD
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2276

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

Preview Lab → · Contrast checker → · Palette generator →

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