#3D23A3#3D23A3

#3D23A3 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.190 H 282.1°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#3D23A3
RGBrgb(61, 35, 163)
HSLhsl(252, 65%, 39%)
HSVhsv(252, 79%, 64%)
CMYKcmyk(62.6%, 78.5%, 0%, 36.1%)
CIE-LABlab(26.27, 46.84, -64.25)
CIE-LCHlch(26.27, 79.51, 306.09°)
OKLaboklab(38.53% 0.0399 -0.1853)
OKLCHoklch(38.53% 0.19 282.1)
XYZxyz(9.1343, 4.8379, 35.0957)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D23A3 #89A323
analogous
#2349A3 #3D23A3 #7D23A3
triadic
#3D23A3 #A33D23 #23A33D
tetradic
#3D23A3 #A32349 #89A323 #23A37D
square
#3D23A3 #A32349 #89A323 #23A37D
split-complementary
#3D23A3 #A37D23 #49A323
monochromatic
#170D3E #2A1871 #3D23A3 #5131D3 #7C63DD

Accessibility & contrast

On white

10.67
#3D23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3D23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D23A3
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D23A3#FFFFFF#000000##FFFFFF
##3D23A31.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d23a3;
/* rgb */ color: rgb(61, 35, 163);
/* oklch */ color: oklch(38.5% 0.190 282.1);
Tailwind
colors: {
  custom: {
    50: '#8062bf',
    500: '#3d23a3',
    950: '#000000',
  },
}
SCSS
$custom: #3d23a3;
$custom-light: #8062bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d23a3",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 252.188,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3853,
    "c": 0.18959,
    "h": 282.1
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#3D23A3
secondary
#AEC35F
accent
#E840C6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3D23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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