#3E2299#3E2299

#3E2299 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.179 H 284.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3E2299
RGBrgb(62, 34, 153)
HSLhsl(254, 64%, 37%)
HSVhsv(254, 78%, 60%)
CMYKcmyk(59.5%, 77.8%, 0%, 40%)
CIE-LABlab(25.16, 44.47, -59.97)
CIE-LCHlch(25.16, 74.66, 306.56°)
OKLaboklab(37.47% 0.0449 -0.1728)
OKLCHoklch(37.47% 0.179 284.6)
XYZxyz(8.3066, 4.4676, 30.5554)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2299 #7D9922
analogous
#224299 #3E2299 #7A2299
triadic
#3E2299 #993E22 #22993E
tetradic
#3E2299 #992242 #7D9922 #22997A
square
#3E2299 #992242 #7D9922 #22997A
split-complementary
#3E2299 #997A22 #429922
monochromatic
#150C35 #2A1767 #3E2299 #522DCB #795BDB

Accessibility & contrast

On white

11.09
#3E2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3E2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2299
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2299#FFFFFF#000000##FFFFFF
##3E22991.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#08445C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2299;
/* rgb */ color: rgb(62, 34, 153);
/* oklch */ color: oklch(37.5% 0.179 284.6);
Tailwind
colors: {
  custom: {
    50: '#7f61b8',
    500: '#3e2299',
    950: '#000000',
  },
}
SCSS
$custom: #3e2299;
$custom-light: #7f61b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2299",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 254.118,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37471,
    "c": 0.17855,
    "h": 284.6
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#3E2299
secondary
#A7BF58
accent
#E741C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2299

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

Preview Lab → · Contrast checker → · Palette generator →

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