#3E288D#3E288D

#3E288D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.157 H 285.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3E288D
RGBrgb(62, 40, 141)
HSLhsl(253, 56%, 35%)
HSVhsv(253, 72%, 55%)
CMYKcmyk(56%, 71.6%, 0%, 44.7%)
CIE-LABlab(25.15, 37.58, -52.58)
CIE-LCHlch(25.15, 64.63, 305.55°)
OKLaboklab(37.11% 0.043 -0.1512)
OKLCHoklch(37.11% 0.157 285.9)
XYZxyz(7.5517, 4.4644, 25.6579)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E288D #778D28
analogous
#28458D #3E288D #70288D
triadic
#3E288D #8D3E28 #288D3E
tetradic
#3E288D #8D2845 #778D28 #288D70
square
#3E288D #8D2845 #778D28 #288D70
split-complementary
#3E288D #8D7028 #458D28
monochromatic
#140D2E #291A5D #3E288D #5336BD #775ED1

Accessibility & contrast

On white

11.09
#3E288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E288D
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E288D#FFFFFF#000000##FFFFFF
##3E288D1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#1B4257
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e288d;
/* rgb */ color: rgb(62, 40, 141);
/* oklch */ color: oklch(37.1% 0.157 285.9);
Tailwind
colors: {
  custom: {
    50: '#7c64af',
    500: '#3e288d',
    950: '#000000',
  },
}
SCSS
$custom: #3e288d;
$custom-light: #7c64af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e288d",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 253.069,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37112,
    "c": 0.15721,
    "h": 285.9
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

primary
#3E288D
secondary
#A3B75A
accent
#DF49BE
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E288D

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

Preview Lab → · Contrast checker → · Palette generator →

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