#3E2287#3E2287

#3E2287 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.157 H 288.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#3E2287
RGBrgb(62, 34, 135)
HSLhsl(257, 60%, 33%)
HSVhsv(257, 75%, 53%)
CMYKcmyk(54.1%, 74.8%, 0%, 47.1%)
CIE-LABlab(23.40, 39.08, -51.72)
CIE-LCHlch(23.40, 64.82, 307.08°)
OKLaboklab(35.69% 0.0497 -0.1486)
OKLCHoklch(35.69% 0.157 288.5)
XYZxyz(6.9305, 3.9171, 23.3079)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2287 #6B8722
analogous
#223887 #3E2287 #702287
triadic
#3E2287 #873E22 #22873E
tetradic
#3E2287 #872238 #6B8722 #228770
square
#3E2287 #872238 #6B8722 #228770
split-complementary
#3E2287 #877022 #388722
monochromatic
#110925 #281656 #3E2287 #542EB8 #7550D3

Accessibility & contrast

On white

11.78
#3E2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3E2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2287
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2287#FFFFFF#000000##FFFFFF
##3E22871.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#223D52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e2287;
/* rgb */ color: rgb(62, 34, 135);
/* oklch */ color: oklch(35.7% 0.157 288.5);
Tailwind
colors: {
  custom: {
    50: '#7c60ab',
    500: '#3e2287',
    950: '#000000',
  },
}
SCSS
$custom: #3e2287;
$custom-light: #7c60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2287",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 256.634,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35693,
    "c": 0.15672,
    "h": 288.5
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#3E2287
secondary
#9AB74E
accent
#E345B7
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2287

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

Preview Lab → · Contrast checker → · Palette generator →

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