#3E1262#3E1262

#3E1262 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.132 H 304.4°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#3E1262
RGBrgb(62, 18, 98)
HSLhsl(273, 69%, 23%)
HSVhsv(273, 82%, 38%)
CMYKcmyk(36.7%, 81.6%, 0%, 61.6%)
CIE-LABlab(17.17, 36.64, -38.08)
CIE-LCHlch(17.17, 52.85, 313.89°)
OKLaboklab(30.26% 0.0743 -0.1085)
OKLCHoklch(30.26% 0.132 304.4)
XYZxyz(4.4070, 2.3386, 11.7721)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1262 #366212
analogous
#161262 #3E1262 #62125E
triadic
#3E1262 #623E12 #12623E
tetradic
#3E1262 #621612 #366212 #125E62
square
#3E1262 #621612 #366212 #125E62
split-complementary
#3E1262 #5E6212 #126216
monochromatic
#10051A #1D092E #3E1262 #5F1B96 #7F25C9

Accessibility & contrast

On white

14.31
#3E1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3E1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1262
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1262#FFFFFF#000000##FFFFFF
##3E12621.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#372739
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1262;
/* rgb */ color: rgb(62, 18, 98);
/* oklch */ color: oklch(30.3% 0.132 304.4);
Tailwind
colors: {
  custom: {
    50: '#78558f',
    500: '#3e1262',
    950: '#000000',
  },
}
SCSS
$custom: #3e1262;
$custom-light: #78558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1262",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 273,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30255,
    "c": 0.13152,
    "h": 304.4
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#3E1262
secondary
#639A36
accent
#EC3C8B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E1262

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

Preview Lab → · Contrast checker → · Palette generator →

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