#3E2A7C#3E2A7C

#3E2A7C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.132 H 289.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#3E2A7C
RGBrgb(62, 42, 124)
HSLhsl(255, 49%, 33%)
HSVhsv(255, 66%, 49%)
CMYKcmyk(50%, 66.1%, 0%, 51.4%)
CIE-LABlab(24.11, 31.06, -43.62)
CIE-LCHlch(24.11, 53.55, 305.45°)
OKLaboklab(35.91% 0.0435 -0.1249)
OKLCHoklch(35.91% 0.132 289.2)
XYZxyz(6.4516, 4.1350, 19.5231)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A7C #687C2A
analogous
#2A3F7C #3E2A7C #672A7C
triadic
#3E2A7C #7C3E2A #2A7C3E
tetradic
#3E2A7C #7C2A3F #687C2A #2A7C67
square
#3E2A7C #7C2A3F #687C2A #2A7C67
split-complementary
#3E2A7C #7C672A #3F7C2A
monochromatic
#100B21 #271B4E #3E2A7C #5539AA #7459C7

Accessibility & contrast

On white

11.49
#3E2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3E2A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A7C
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A7C#FFFFFF#000000##FFFFFF
##3E2A7C1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#2A3E4F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e2a7c;
/* rgb */ color: rgb(62, 42, 124);
/* oklch */ color: oklch(35.9% 0.132 289.2);
Tailwind
colors: {
  custom: {
    50: '#7965a3',
    500: '#3e2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a7c;
$custom-light: #7965a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a7c",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 254.634,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35907,
    "c": 0.13225,
    "h": 289.2
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#3E2A7C
secondary
#97AD55
accent
#D94FB7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #3E2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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