#3E277E#3E277E

#3E277E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.139 H 289.6°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#3E277E
RGBrgb(62, 39, 126)
HSLhsl(256, 53%, 32%)
HSVhsv(256, 69%, 49%)
CMYKcmyk(50.8%, 69%, 0%, 50.6%)
CIE-LABlab(23.61, 33.50, -45.70)
CIE-LCHlch(23.61, 56.66, 306.24°)
OKLaboklab(35.6% 0.0466 -0.131)
OKLCHoklch(35.6% 0.139 289.6)
XYZxyz(6.4769, 3.9813, 20.1618)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E277E #677E27
analogous
#273C7E #3E277E #69277E
triadic
#3E277E #7E3E27 #277E3E
tetradic
#3E277E #7E273C #677E27 #277E69
square
#3E277E #7E273C #677E27 #277E69
split-complementary
#3E277E #7E6927 #3C7E27
monochromatic
#100A21 #27194F #3E277E #5535AD #7455CA

Accessibility & contrast

On white

11.69
#3E277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3E277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E277E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E277E#FFFFFF#000000##FFFFFF
##3E277E1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#283C4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e277e;
/* rgb */ color: rgb(62, 39, 126);
/* oklch */ color: oklch(35.6% 0.139 289.6);
Tailwind
colors: {
  custom: {
    50: '#7a63a4',
    500: '#3e277e',
    950: '#000000',
  },
}
SCSS
$custom: #3e277e;
$custom-light: #7a63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e277e",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 255.862,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35596,
    "c": 0.13904,
    "h": 289.6
  },
  "luminance": 0.03982
}

Semantic roles & 50–950 ramp

primary
#3E277E
secondary
#96AF52
accent
#DC4CB6
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E277E

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

Preview Lab → · Contrast checker → · Palette generator →

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