#3E278F#3E278F

#3E278F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.161 H 285.7°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#3E278F
RGBrgb(62, 39, 143)
HSLhsl(253, 57%, 36%)
HSVhsv(253, 73%, 56%)
CMYKcmyk(56.6%, 72.7%, 0%, 43.9%)
CIE-LABlab(25.13, 38.77, -53.86)
CIE-LCHlch(25.13, 66.36, 305.75°)
OKLaboklab(37.16% 0.0435 -0.1549)
OKLCHoklch(37.16% 0.161 285.7)
XYZxyz(7.6686, 4.4579, 26.4377)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E278F #788F27
analogous
#27448F #3E278F #72278F
triadic
#3E278F #8F3E27 #278F3E
tetradic
#3E278F #8F2744 #788F27 #278F72
square
#3E278F #8F2744 #788F27 #278F72
split-complementary
#3E278F #8F7227 #448F27
monochromatic
#140D2F #291A5F #3E278F #5334BF #775DD3

Accessibility & contrast

On white

11.10
#3E278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3E278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E278F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E278F#FFFFFF#000000##FFFFFF
##3E278F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#194358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e278f;
/* rgb */ color: rgb(62, 39, 143);
/* oklch */ color: oklch(37.2% 0.161 285.7);
Tailwind
colors: {
  custom: {
    50: '#7c63b1',
    500: '#3e278f',
    950: '#000000',
  },
}
SCSS
$custom: #3e278f;
$custom-light: #7c63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e278f",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 253.269,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37155,
    "c": 0.16093,
    "h": 285.7
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

primary
#3E278F
secondary
#A3B85A
accent
#E047BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3E278F

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

Preview Lab → · Contrast checker → · Palette generator →

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