#3E287D#3E287D

#3E287D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.136 H 289.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#3E287D
RGBrgb(62, 40, 125)
HSLhsl(256, 52%, 32%)
HSVhsv(256, 68%, 49%)
CMYKcmyk(50.4%, 68%, 0%, 51%)
CIE-LABlab(23.74, 32.59, -44.85)
CIE-LCHlch(23.74, 55.44, 306.00°)
OKLaboklab(35.67% 0.0456 -0.1285)
OKLCHoklch(35.67% 0.136 289.5)
XYZxyz(6.4460, 4.0221, 19.8348)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E287D #677D28
analogous
#283D7D #3E287D #68287D
triadic
#3E287D #7D3E28 #287D3E
tetradic
#3E287D #7D283D #677D28 #287D68
square
#3E287D #7D283D #677D28 #287D68
split-complementary
#3E287D #7D6828 #3D7D28
monochromatic
#100A20 #27194F #3E287D #5537AB #7456C9

Accessibility & contrast

On white

11.64
#3E287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E287D
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E287D#FFFFFF#000000##FFFFFF
##3E287D1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#293D4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e287d;
/* rgb */ color: rgb(62, 40, 125);
/* oklch */ color: oklch(35.7% 0.136 289.5);
Tailwind
colors: {
  custom: {
    50: '#7963a3',
    500: '#3e287d',
    950: '#000000',
  },
}
SCSS
$custom: #3e287d;
$custom-light: #7963a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e287d",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 255.529,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35666,
    "c": 0.13636,
    "h": 289.5
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#3E287D
secondary
#96AE53
accent
#DB4DB6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3E287D

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

Preview Lab → · Contrast checker → · Palette generator →

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