#3E225A#3E225A

#3E225A is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.8% C 0.098 H 304.5°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#3E225A
RGBrgb(62, 34, 90)
HSLhsl(270, 45%, 24%)
HSVhsv(270, 62%, 35%)
CMYKcmyk(31.1%, 62.2%, 0%, 64.7%)
CIE-LABlab(19.67, 25.85, -28.74)
CIE-LCHlch(19.67, 38.66, 311.97°)
OKLaboklab(31.84% 0.0557 -0.0812)
OKLCHoklch(31.84% 0.098 304.5)
XYZxyz(4.4037, 2.9064, 9.9999)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E225A #3E5A22
analogous
#22225A #3E225A #5A225A
triadic
#3E225A #5A3E22 #225A3E
tetradic
#3E225A #5A2222 #3E5A22 #225A5A
square
#3E225A #5A2222 #3E5A22 #225A5A
split-complementary
#3E225A #5A5A22 #225A22
monochromatic
#0F0816 #1F112E #3E225A #5D3386 #7B44B3

Accessibility & contrast

On white

13.28
#3E225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3E225A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E225A
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E225A#FFFFFF#000000##FFFFFF
##3E225A1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2F5C
Deuteranopia (green-blind)
#163059
Tritanopia (blue-blind)
#392D3A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e225a;
/* rgb */ color: rgb(62, 34, 90);
/* oklch */ color: oklch(31.8% 0.098 304.5);
Tailwind
colors: {
  custom: {
    50: '#755e89',
    500: '#3e225a',
    950: '#000000',
  },
}
SCSS
$custom: #3e225a;
$custom-light: #755e89;
$custom-dark: #000000;
JSON
{
  "hex": "#3e225a",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 270,
    "s": 45.161,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31843,
    "c": 0.09843,
    "h": 304.5
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#3E225A
secondary
#6C8E4A
accent
#D55394
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040B
muted
#7B797C

Preview Lab

Preview with #3E225A

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

Preview Lab → · Contrast checker → · Palette generator →

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