#3E288E#3E288E

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

Color values

HEX#3E288E
RGBrgb(62, 40, 142)
HSLhsl(253, 56%, 36%)
HSVhsv(253, 72%, 56%)
CMYKcmyk(56.3%, 71.8%, 0%, 44.3%)
CIE-LABlab(25.24, 37.89, -53.05)
CIE-LCHlch(25.24, 65.19, 305.53°)
OKLaboklab(37.21% 0.0428 -0.1526)
OKLCHoklch(37.21% 0.158 285.7)
XYZxyz(7.6264, 4.4943, 26.0516)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E288E #788E28
analogous
#28458E #3E288E #71288E
triadic
#3E288E #8E3E28 #288E3E
tetradic
#3E288E #8E2845 #788E28 #288E71
square
#3E288E #8E2845 #788E28 #288E71
split-complementary
#3E288E #8E7128 #458E28
monochromatic
#140D2F #291B5E #3E288E #5335BE #775FD2

Accessibility & contrast

On white

11.06
#3E288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3E288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E288E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E288E#FFFFFF#000000##FFFFFF
##3E288E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#1A4358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e288e;
/* rgb */ color: rgb(62, 40, 142);
/* oklch */ color: oklch(37.2% 0.158 285.7);
Tailwind
colors: {
  custom: {
    50: '#7c64b0',
    500: '#3e288e',
    950: '#000000',
  },
}
SCSS
$custom: #3e288e;
$custom-light: #7c64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e288e",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 252.941,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37206,
    "c": 0.15848,
    "h": 285.7
  },
  "luminance": 0.04495
}

Semantic roles & 50–950 ramp

primary
#3E288E
secondary
#A3B75B
accent
#DF48BF
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3E288E

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

Preview Lab → · Contrast checker → · Palette generator →

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