#3D278D#3D278D

#3D278D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.158 H 285.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3D278D
RGBrgb(61, 39, 141)
HSLhsl(253, 57%, 35%)
HSVhsv(253, 72%, 55%)
CMYKcmyk(56.7%, 72.3%, 0%, 44.7%)
CIE-LABlab(24.85, 37.98, -53.09)
CIE-LCHlch(24.85, 65.28, 305.58°)
OKLaboklab(36.87% 0.0424 -0.1527)
OKLCHoklch(36.87% 0.158 285.5)
XYZxyz(7.4563, 4.3658, 25.6439)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D278D #778D27
analogous
#27448D #3D278D #70278D
triadic
#3D278D #8D3D27 #278D3D
tetradic
#3D278D #8D2744 #778D27 #278D70
square
#3D278D #8D2744 #778D27 #278D70
split-complementary
#3D278D #8D7027 #448D27
monochromatic
#140C2D #281A5D #3D278D #5234BD #765CD2

Accessibility & contrast

On white

11.21
#3D278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3D278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D278D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D278D#FFFFFF#000000##FFFFFF
##3D278D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#184257
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d278d;
/* rgb */ color: rgb(61, 39, 141);
/* oklch */ color: oklch(36.9% 0.158 285.5);
Tailwind
colors: {
  custom: {
    50: '#7c63af',
    500: '#3d278d',
    950: '#000000',
  },
}
SCSS
$custom: #3d278d;
$custom-light: #7c63af;
$custom-dark: #000000;
JSON
{
  "hex": "#3d278d",
  "rgb": {
    "r": 61,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 252.941,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3687,
    "c": 0.15849,
    "h": 285.5
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#3D278D
secondary
#A3B759
accent
#E048BF
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3D278D

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

Preview Lab → · Contrast checker → · Palette generator →

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