#3E226B#3E226B

#3E226B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.121 H 296.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3E226B
RGBrgb(62, 34, 107)
HSLhsl(263, 52%, 28%)
HSVhsv(263, 68%, 42%)
CMYKcmyk(42.1%, 68.2%, 0%, 58%)
CIE-LABlab(20.94, 30.73, -37.87)
CIE-LCHlch(20.94, 48.76, 309.06°)
OKLaboklab(33.18% 0.0548 -0.1079)
OKLCHoklch(33.18% 0.121 296.9)
XYZxyz(5.2118, 3.2296, 14.2559)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E226B #4F6B22
analogous
#222A6B #3E226B #63226B
triadic
#3E226B #6B3E22 #226B3E
tetradic
#3E226B #6B222A #4F6B22 #226B63
square
#3E226B #6B222A #4F6B22 #226B63
split-complementary
#3E226B #6B6322 #2A6B22
monochromatic
#0D0717 #23133D #3E226B #593199 #7544C4

Accessibility & contrast

On white

12.76
#3E226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E226B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E226B#FFFFFF#000000##FFFFFF
##3E226B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#333343
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e226b;
/* rgb */ color: rgb(62, 34, 107);
/* oklch */ color: oklch(33.2% 0.121 296.9);
Tailwind
colors: {
  custom: {
    50: '#775f96',
    500: '#3e226b',
    950: '#000000',
  },
}
SCSS
$custom: #3e226b;
$custom-light: #775f96;
$custom-dark: #000000;
JSON
{
  "hex": "#3e226b",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 263.014,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33177,
    "c": 0.12106,
    "h": 296.9
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#3E226B
secondary
#7E9F4A
accent
#DB4DA5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E226B

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

Preview Lab → · Contrast checker → · Palette generator →

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