#3E2098#3E2098

#3E2098 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.179 H 285.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#3E2098
RGBrgb(62, 32, 152)
HSLhsl(255, 65%, 36%)
HSVhsv(255, 79%, 60%)
CMYKcmyk(59.2%, 78.9%, 0%, 40.4%)
CIE-LABlab(24.71, 45.16, -60.10)
CIE-LCHlch(24.71, 75.17, 306.93°)
OKLaboklab(37.13% 0.0466 -0.1731)
OKLCHoklch(37.13% 0.179 285.1)
XYZxyz(8.1689, 4.3237, 30.1038)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2098 #7A9820
analogous
#203E98 #3E2098 #7A2098
triadic
#3E2098 #983E20 #20983E
tetradic
#3E2098 #98203E #7A9820 #20987A
square
#3E2098 #98203E #7A9820 #20987A
split-complementary
#3E2098 #987A20 #3E9820
monochromatic
#150B33 #291565 #3E2098 #532BCB #7857DC

Accessibility & contrast

On white

11.26
#3E2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2098
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2098#FFFFFF#000000##FFFFFF
##3E20981.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#0B435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2098;
/* rgb */ color: rgb(62, 32, 152);
/* oklch */ color: oklch(37.1% 0.179 285.1);
Tailwind
colors: {
  custom: {
    50: '#7f60b7',
    500: '#3e2098',
    950: '#000000',
  },
}
SCSS
$custom: #3e2098;
$custom-light: #7f60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2098",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 255,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37128,
    "c": 0.1793,
    "h": 285.1
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#3E2098
secondary
#A5BF54
accent
#E840BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2098

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

Preview Lab → · Contrast checker → · Palette generator →

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