#3E288F#3E288F

#3E288F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.160 H 285.5°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#3E288F
RGBrgb(62, 40, 143)
HSLhsl(253, 56%, 36%)
HSVhsv(253, 72%, 56%)
CMYKcmyk(56.6%, 72%, 0%, 43.9%)
CIE-LABlab(25.33, 38.20, -53.52)
CIE-LCHlch(25.33, 65.76, 305.52°)
OKLaboklab(37.3% 0.0426 -0.154)
OKLCHoklch(37.3% 0.16 285.5)
XYZxyz(7.7018, 4.5244, 26.4487)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E288F #798F28
analogous
#28458F #3E288F #71288F
triadic
#3E288F #8F3E28 #288F3E
tetradic
#3E288F #8F2845 #798F28 #288F71
square
#3E288F #8F2845 #798F28 #288F71
split-complementary
#3E288F #8F7128 #458F28
monochromatic
#150D2F #291B5F #3E288F #5335BF #785FD2

Accessibility & contrast

On white

11.02
#3E288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3E288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E288F
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E288F#FFFFFF#000000##FFFFFF
##3E288F1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e288f;
/* rgb */ color: rgb(62, 40, 143);
/* oklch */ color: oklch(37.3% 0.160 285.5);
Tailwind
colors: {
  custom: {
    50: '#7c64b1',
    500: '#3e288f',
    950: '#000000',
  },
}
SCSS
$custom: #3e288f;
$custom-light: #7c64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e288f",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 252.816,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.373,
    "c": 0.15975,
    "h": 285.5
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#3E288F
secondary
#A4B85B
accent
#E048BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3E288F

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

Preview Lab → · Contrast checker → · Palette generator →

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