#3D23A6#3D23A6

#3D23A6 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.193 H 281.7°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#3D23A6
RGBrgb(61, 35, 166)
HSLhsl(252, 65%, 39%)
HSVhsv(252, 79%, 65%)
CMYKcmyk(63.3%, 78.9%, 0%, 34.9%)
CIE-LABlab(26.58, 47.73, -65.55)
CIE-LCHlch(26.58, 81.09, 306.06°)
OKLaboklab(38.84% 0.039 -0.1891)
OKLCHoklch(38.84% 0.193 281.7)
XYZxyz(9.4063, 4.9466, 36.5281)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D23A6 #8CA623
analogous
#234BA6 #3D23A6 #7E23A6
triadic
#3D23A6 #A63D23 #23A63D
tetradic
#3D23A6 #A6234B #8CA623 #23A67E
square
#3D23A6 #A6234B #8CA623 #23A67E
split-complementary
#3D23A6 #A67E23 #4BA623
monochromatic
#180E41 #2A1873 #3D23A6 #5232D4 #7D65DF

Accessibility & contrast

On white

10.56
#3D23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3D23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D23A6
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D23A6#FFFFFF#000000##FFFFFF
##3D23A61.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d23a6;
/* rgb */ color: rgb(61, 35, 166);
/* oklch */ color: oklch(38.8% 0.193 281.7);
Tailwind
colors: {
  custom: {
    50: '#8162c2',
    500: '#3d23a6',
    950: '#000000',
  },
}
SCSS
$custom: #3d23a6;
$custom-light: #8162c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d23a6",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 251.908,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38843,
    "c": 0.19311,
    "h": 281.7
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#3D23A6
secondary
#B0C461
accent
#E840C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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