#3D27A3#3D27A3

#3D27A3 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.186 H 281.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#3D27A3
RGBrgb(61, 39, 163)
HSLhsl(251, 61%, 40%)
HSVhsv(251, 76%, 64%)
CMYKcmyk(62.6%, 76.1%, 0%, 36.1%)
CIE-LABlab(26.98, 44.80, -63.08)
CIE-LCHlch(26.98, 77.37, 305.38°)
OKLaboklab(39.03% 0.0373 -0.1819)
OKLCHoklch(39.03% 0.186 281.6)
XYZxyz(9.2588, 5.0868, 35.1372)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D27A3 #8DA327
analogous
#274FA3 #3D27A3 #7B27A3
triadic
#3D27A3 #A33D27 #27A33D
tetradic
#3D27A3 #A3274F #8DA327 #27A37B
square
#3D27A3 #A3274F #8DA327 #27A37B
split-complementary
#3D27A3 #A37B27 #4FA327
monochromatic
#180F40 #2B1B72 #3D27A3 #5338CF #7D69DB

Accessibility & contrast

On white

10.41
#3D27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D27A3
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D27A3#FFFFFF#000000##FFFFFF
##3D27A31.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3d27a3;
/* rgb */ color: rgb(61, 39, 163);
/* oklch */ color: oklch(39.0% 0.186 281.6);
Tailwind
colors: {
  custom: {
    50: '#8064bf',
    500: '#3d27a3',
    950: '#000000',
  },
}
SCSS
$custom: #3d27a3;
$custom-light: #8064bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d27a3",
  "rgb": {
    "r": 61,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 250.645,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3903,
    "c": 0.18573,
    "h": 281.6
  },
  "luminance": 0.05087
}

Semantic roles & 50–950 ramp

primary
#3D27A3
secondary
#B1C164
accent
#E443C8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3D27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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