#3D27A6#3D27A6

#3D27A6 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.189 H 281.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#3D27A6
RGBrgb(61, 39, 166)
HSLhsl(250, 62%, 40%)
HSVhsv(250, 77%, 65%)
CMYKcmyk(63.3%, 76.5%, 0%, 34.9%)
CIE-LABlab(27.28, 45.72, -64.39)
CIE-LCHlch(27.28, 78.97, 305.37°)
OKLaboklab(39.34% 0.0366 -0.1858)
OKLCHoklch(39.34% 0.189 281.1)
XYZxyz(9.5308, 5.1956, 36.5696)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D27A6 #90A627
analogous
#2750A6 #3D27A6 #7D27A6
triadic
#3D27A6 #A63D27 #27A63D
tetradic
#3D27A6 #A62750 #90A627 #27A67D
square
#3D27A6 #A62750 #90A627 #27A67D
split-complementary
#3D27A6 #A67D27 #50A627
monochromatic
#191043 #2B1B74 #3D27A6 #543AD1 #7F6BDC

Accessibility & contrast

On white

10.30
#3D27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3D27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D27A6
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D27A6#FFFFFF#000000##FFFFFF
##3D27A61.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3d27a6;
/* rgb */ color: rgb(61, 39, 166);
/* oklch */ color: oklch(39.3% 0.189 281.1);
Tailwind
colors: {
  custom: {
    50: '#8064c2',
    500: '#3d27a6',
    950: '#000000',
  },
}
SCSS
$custom: #3d27a6;
$custom-light: #8064c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d27a6",
  "rgb": {
    "r": 61,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 250.394,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39335,
    "c": 0.18935,
    "h": 281.1
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#3D27A6
secondary
#B3C366
accent
#E543C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #3D27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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