#3D23A5#3D23A5

#3D23A5 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.192 H 281.8°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#3D23A5
RGBrgb(61, 35, 165)
HSLhsl(252, 65%, 39%)
HSVhsv(252, 79%, 65%)
CMYKcmyk(63%, 78.8%, 0%, 35.3%)
CIE-LABlab(26.48, 47.43, -65.12)
CIE-LCHlch(26.48, 80.56, 306.07°)
OKLaboklab(38.74% 0.0393 -0.1879)
OKLCHoklch(38.74% 0.192 281.8)
XYZxyz(9.3149, 4.9101, 36.0469)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D23A5 #8BA523
analogous
#234AA5 #3D23A5 #7E23A5
triadic
#3D23A5 #A53D23 #23A53D
tetradic
#3D23A5 #A5234A #8BA523 #23A57E
square
#3D23A5 #A5234A #8BA523 #23A57E
split-complementary
#3D23A5 #A57E23 #4AA523
monochromatic
#180E40 #2A1873 #3D23A5 #5232D3 #7D64DE

Accessibility & contrast

On white

10.59
#3D23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3D23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D23A5
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D23A5#FFFFFF#000000##FFFFFF
##3D23A51.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d23a5;
/* rgb */ color: rgb(61, 35, 165);
/* oklch */ color: oklch(38.7% 0.192 281.8);
Tailwind
colors: {
  custom: {
    50: '#8062c1',
    500: '#3d23a5',
    950: '#000000',
  },
}
SCSS
$custom: #3d23a5;
$custom-light: #8062c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d23a5",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 252,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38739,
    "c": 0.19193,
    "h": 281.8
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#3D23A5
secondary
#B0C460
accent
#E840C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3D23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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