#3D2894#3D2894

#3D2894 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.166 H 284.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3D2894
RGBrgb(61, 40, 148)
HSLhsl(252, 57%, 37%)
HSVhsv(252, 73%, 58%)
CMYKcmyk(58.8%, 73%, 0%, 42%)
CIE-LABlab(25.71, 39.60, -56.01)
CIE-LCHlch(25.71, 68.60, 305.26°)
OKLaboklab(37.68% 0.0401 -0.1613)
OKLCHoklch(37.68% 0.166 284)
XYZxyz(8.0269, 4.6473, 28.4853)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2894 #7F9428
analogous
#284994 #3D2894 #732894
triadic
#3D2894 #943D28 #28943D
tetradic
#3D2894 #942849 #7F9428 #289473
square
#3D2894 #942849 #7F9428 #289473
split-complementary
#3D2894 #947328 #499428
monochromatic
#150E34 #291B64 #3D2894 #5135C4 #7862D5

Accessibility & contrast

On white

10.88
#3D2894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3D2894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2894
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2894#FFFFFF#000000##FFFFFF
##3D28941.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003992
Tritanopia (blue-blind)
#0D455B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d2894;
/* rgb */ color: rgb(61, 40, 148);
/* oklch */ color: oklch(37.7% 0.166 284.0);
Tailwind
colors: {
  custom: {
    50: '#7d64b4',
    500: '#3d2894',
    950: '#000000',
  },
}
SCSS
$custom: #3d2894;
$custom-light: #7d64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2894",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 251.667,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37683,
    "c": 0.16619,
    "h": 284
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#3D2894
secondary
#A8BA5E
accent
#E147C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3D2894

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

Preview Lab → · Contrast checker → · Palette generator →

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