#3D23A7#3D23A7

#3D23A7 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.194 H 281.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#3D23A7
RGBrgb(61, 35, 167)
HSLhsl(252, 65%, 40%)
HSVhsv(252, 79%, 65%)
CMYKcmyk(63.5%, 79%, 0%, 34.5%)
CIE-LABlab(26.69, 48.03, -65.98)
CIE-LCHlch(26.69, 81.61, 306.05°)
OKLaboklab(38.95% 0.0387 -0.1904)
OKLCHoklch(38.95% 0.194 281.5)
XYZxyz(9.4984, 4.9835, 37.0131)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D23A7 #8DA723
analogous
#234BA7 #3D23A7 #7F23A7
triadic
#3D23A7 #A73D23 #23A73D
tetradic
#3D23A7 #A7234B #8DA723 #23A77F
square
#3D23A7 #A7234B #8DA723 #23A77F
split-complementary
#3D23A7 #A77F23 #4BA723
monochromatic
#180E42 #2B1874 #3D23A7 #5333D4 #7D66DF

Accessibility & contrast

On white

10.52
#3D23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3D23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D23A7
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D23A7#FFFFFF#000000##FFFFFF
##3D23A71.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d23a7;
/* rgb */ color: rgb(61, 35, 167);
/* oklch */ color: oklch(38.9% 0.194 281.5);
Tailwind
colors: {
  custom: {
    50: '#8162c2',
    500: '#3d23a7',
    950: '#000000',
  },
}
SCSS
$custom: #3d23a7;
$custom-light: #8162c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d23a7",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 251.818,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.19428,
    "h": 281.5
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#3D23A7
secondary
#B1C461
accent
#E83FC7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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