#3A23A4#3A23A4

#3A23A4 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.191 H 280.6°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#3A23A4
RGBrgb(58, 35, 164)
HSLhsl(251, 65%, 39%)
HSVhsv(251, 79%, 64%)
CMYKcmyk(64.6%, 78.7%, 0%, 35.7%)
CIE-LABlab(26.10, 46.80, -65.14)
CIE-LCHlch(26.10, 80.21, 305.69°)
OKLaboklab(38.38% 0.0351 -0.188)
OKLCHoklch(38.38% 0.191 280.6)
XYZxyz(9.0447, 4.7812, 35.5610)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23A4 #8DA423
analogous
#234DA4 #3A23A4 #7B23A4
triadic
#3A23A4 #A43A23 #23A43A
tetradic
#3A23A4 #A4234D #8DA423 #23A47B
square
#3A23A4 #A4234D #8DA423 #23A47B
split-complementary
#3A23A4 #A47B23 #4DA423
monochromatic
#160D3F #281872 #3A23A4 #4E31D3 #7964DE

Accessibility & contrast

On white

10.73
#3A23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3A23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A23A4
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23A4#FFFFFF#000000##FFFFFF
##3A23A41.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a23a4;
/* rgb */ color: rgb(58, 35, 164);
/* oklch */ color: oklch(38.4% 0.191 280.6);
Tailwind
colors: {
  custom: {
    50: '#7f62c0',
    500: '#3a23a4',
    950: '#000000',
  },
}
SCSS
$custom: #3a23a4;
$custom-light: #7f62c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23a4",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 250.698,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38379,
    "c": 0.19127,
    "h": 280.6
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#3A23A4
secondary
#B1C360
accent
#E840CA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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