#3E2197#3E2197

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

Color values

HEX#3E2197
RGBrgb(62, 33, 151)
HSLhsl(255, 64%, 36%)
HSVhsv(255, 78%, 59%)
CMYKcmyk(58.9%, 78.1%, 0%, 40.8%)
CIE-LABlab(24.78, 44.38, -59.37)
CIE-LCHlch(24.78, 74.12, 306.78°)
OKLaboklab(37.15% 0.0462 -0.171)
OKLCHoklch(37.15% 0.177 285.1)
XYZxyz(8.1147, 4.3457, 29.6834)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2197 #7A9721
analogous
#213F97 #3E2197 #792197
triadic
#3E2197 #973E21 #21973E
tetradic
#3E2197 #97213F #7A9721 #219779
square
#3E2197 #97213F #7A9721 #219779
split-complementary
#3E2197 #977921 #3F9721
monochromatic
#150B33 #291665 #3E2197 #532CC9 #7858DA

Accessibility & contrast

On white

11.23
#3E2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2197
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2197#FFFFFF#000000##FFFFFF
##3E21971.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#0D435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2197;
/* rgb */ color: rgb(62, 33, 151);
/* oklch */ color: oklch(37.1% 0.177 285.1);
Tailwind
colors: {
  custom: {
    50: '#7e60b7',
    500: '#3e2197',
    950: '#000000',
  },
}
SCSS
$custom: #3e2197;
$custom-light: #7e60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2197",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 254.746,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37146,
    "c": 0.17715,
    "h": 285.1
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#3E2197
secondary
#A5BE55
accent
#E741BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2197

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

Preview Lab → · Contrast checker → · Palette generator →

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