#3D2A7E#3D2A7E

#3D2A7E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.0% C 0.135 H 288.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#3D2A7E
RGBrgb(61, 42, 126)
HSLhsl(254, 50%, 33%)
HSVhsv(254, 67%, 49%)
CMYKcmyk(51.6%, 66.7%, 0%, 50.6%)
CIE-LABlab(24.17, 31.48, -44.79)
CIE-LCHlch(24.17, 54.75, 305.11°)
OKLaboklab(35.98% 0.0418 -0.1283)
OKLCHoklch(35.98% 0.135 288.1)
XYZxyz(6.5172, 4.1541, 20.1930)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2A7E #6B7E2A
analogous
#2A417E #3D2A7E #672A7E
triadic
#3D2A7E #7E3D2A #2A7E3D
tetradic
#3D2A7E #7E2A41 #6B7E2A #2A7E67
square
#3D2A7E #7E2A41 #6B7E2A #2A7E67
split-complementary
#3D2A7E #7E672A #417E2A
monochromatic
#110B22 #271B50 #3D2A7E #5339AC #735AC8

Accessibility & contrast

On white

11.47
#3D2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D2A7E
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2A7E#FFFFFF#000000##FFFFFF
##3D2A7E1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#263E50
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d2a7e;
/* rgb */ color: rgb(61, 42, 126);
/* oklch */ color: oklch(36.0% 0.135 288.1);
Tailwind
colors: {
  custom: {
    50: '#7965a4',
    500: '#3d2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #3d2a7e;
$custom-light: #7965a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2a7e",
  "rgb": {
    "r": 61,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 253.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35979,
    "c": 0.135,
    "h": 288.1
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#3D2A7E
secondary
#9AAE56
accent
#DA4EBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3D2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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