#3D27A4#3D27A4

#3D27A4 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.187 H 281.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#3D27A4
RGBrgb(61, 39, 164)
HSLhsl(251, 62%, 40%)
HSVhsv(251, 76%, 64%)
CMYKcmyk(62.8%, 76.2%, 0%, 35.7%)
CIE-LABlab(27.08, 45.11, -63.52)
CIE-LCHlch(27.08, 77.90, 305.38°)
OKLaboklab(39.13% 0.0371 -0.1832)
OKLCHoklch(39.13% 0.187 281.4)
XYZxyz(9.3487, 5.1228, 35.6109)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D27A4 #8EA427
analogous
#2750A4 #3D27A4 #7C27A4
triadic
#3D27A4 #A43D27 #27A43D
tetradic
#3D27A4 #A42750 #8EA427 #27A47C
square
#3D27A4 #A42750 #8EA427 #27A47C
split-complementary
#3D27A4 #A47C27 #50A427
monochromatic
#180F41 #2B1B73 #3D27A4 #5338D0 #7E6ADC

Accessibility & contrast

On white

10.37
#3D27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3D27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D27A4
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D27A4#FFFFFF#000000##FFFFFF
##3D27A41.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3d27a4;
/* rgb */ color: rgb(61, 39, 164);
/* oklch */ color: oklch(39.1% 0.187 281.4);
Tailwind
colors: {
  custom: {
    50: '#8064c0',
    500: '#3d27a4',
    950: '#000000',
  },
}
SCSS
$custom: #3d27a4;
$custom-light: #8064c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d27a4",
  "rgb": {
    "r": 61,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 250.56,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39131,
    "c": 0.18694,
    "h": 281.4
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#3D27A4
secondary
#B1C265
accent
#E543C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3D27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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