#3E2088#3E2088

#3E2088 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.160 H 288.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3E2088
RGBrgb(62, 32, 136)
HSLhsl(257, 62%, 33%)
HSVhsv(257, 76%, 53%)
CMYKcmyk(54.4%, 76.5%, 0%, 46.7%)
CIE-LABlab(23.12, 40.44, -52.80)
CIE-LCHlch(23.12, 66.51, 307.45°)
OKLaboklab(35.53% 0.0511 -0.1518)
OKLCHoklch(35.53% 0.16 288.6)
XYZxyz(6.9458, 3.8344, 23.6619)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2088 #6A8820
analogous
#203688 #3E2088 #722088
triadic
#3E2088 #883E20 #20883E
tetradic
#3E2088 #882036 #6A8820 #208872
square
#3E2088 #882036 #6A8820 #208872
split-complementary
#3E2088 #887220 #368820
monochromatic
#110925 #271456 #3E2088 #552CBA #744DD5

Accessibility & contrast

On white

11.88
#3E2088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3E2088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2088
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2088#FFFFFF#000000##FFFFFF
##3E20881.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#213D52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e2088;
/* rgb */ color: rgb(62, 32, 136);
/* oklch */ color: oklch(35.5% 0.160 288.6);
Tailwind
colors: {
  custom: {
    50: '#7c5fac',
    500: '#3e2088',
    950: '#000000',
  },
}
SCSS
$custom: #3e2088;
$custom-light: #7c5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2088",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 257.308,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35525,
    "c": 0.16018,
    "h": 288.6
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#3E2088
secondary
#99B84C
accent
#E543B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2088

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

Preview Lab → · Contrast checker → · Palette generator →

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