#3E2985#3E2985

#3E2985 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.146 H 287.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3E2985
RGBrgb(62, 41, 133)
HSLhsl(254, 53%, 34%)
HSVhsv(254, 69%, 52%)
CMYKcmyk(53.4%, 69.2%, 0%, 47.8%)
CIE-LABlab(24.65, 34.49, -48.41)
CIE-LCHlch(24.65, 59.44, 305.47°)
OKLaboklab(36.53% 0.0434 -0.139)
OKLCHoklch(36.53% 0.146 287.4)
XYZxyz(7.0119, 4.3031, 22.6469)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2985 #708529
analogous
#294285 #3E2985 #6C2985
triadic
#3E2985 #853E29 #29853E
tetradic
#3E2985 #852942 #708529 #29856C
square
#3E2985 #852942 #708529 #29856C
split-complementary
#3E2985 #856C29 #428529
monochromatic
#120C27 #281B56 #3E2985 #5437B4 #765CCD

Accessibility & contrast

On white

11.29
#3E2985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3E2985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2985
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2985#FFFFFF#000000##FFFFFF
##3E29851.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#234053
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2985;
/* rgb */ color: rgb(62, 41, 133);
/* oklch */ color: oklch(36.5% 0.146 287.4);
Tailwind
colors: {
  custom: {
    50: '#7b64a9',
    500: '#3e2985',
    950: '#000000',
  },
}
SCSS
$custom: #3e2985;
$custom-light: #7b64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2985",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 253.696,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36532,
    "c": 0.1456,
    "h": 287.4
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#3E2985
secondary
#9DB258
accent
#DC4CBB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E2985

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

Preview Lab → · Contrast checker → · Palette generator →

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