#3D23A1#3D23A1

#3D23A1 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.187 H 282.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#3D23A1
RGBrgb(61, 35, 161)
HSLhsl(252, 64%, 38%)
HSVhsv(252, 78%, 63%)
CMYKcmyk(62.1%, 78.3%, 0%, 36.9%)
CIE-LABlab(26.06, 46.24, -63.38)
CIE-LCHlch(26.06, 78.46, 306.11°)
OKLaboklab(38.32% 0.0405 -0.1828)
OKLCHoklch(38.32% 0.187 282.5)
XYZxyz(8.9565, 4.7667, 34.1594)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D23A1 #87A123
analogous
#2348A1 #3D23A1 #7C23A1
triadic
#3D23A1 #A13D23 #23A13D
tetradic
#3D23A1 #A12348 #87A123 #23A17C
square
#3D23A1 #A12348 #87A123 #23A17C
split-complementary
#3D23A1 #A17C23 #48A123
monochromatic
#170D3C #2A186F #3D23A1 #512FD2 #7B62DD

Accessibility & contrast

On white

10.75
#3D23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3D23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D23A1
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D23A1#FFFFFF#000000##FFFFFF
##3D23A11.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00399F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d23a1;
/* rgb */ color: rgb(61, 35, 161);
/* oklch */ color: oklch(38.3% 0.187 282.5);
Tailwind
colors: {
  custom: {
    50: '#8062be',
    500: '#3d23a1',
    950: '#000000',
  },
}
SCSS
$custom: #3d23a1;
$custom-light: #8062be;
$custom-dark: #000000;
JSON
{
  "hex": "#3d23a1",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 252.381,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38323,
    "c": 0.18722,
    "h": 282.5
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#3D23A1
secondary
#ADC25E
accent
#E741C5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3D23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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