#3A23A3#3A23A3

#3A23A3 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.190 H 280.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#3A23A3
RGBrgb(58, 35, 163)
HSLhsl(251, 65%, 39%)
HSVhsv(251, 79%, 64%)
CMYKcmyk(64.4%, 78.5%, 0%, 36.1%)
CIE-LABlab(26.00, 46.49, -64.71)
CIE-LCHlch(26.00, 79.68, 305.70°)
OKLaboklab(38.27% 0.0354 -0.1867)
OKLCHoklch(38.27% 0.19 280.7)
XYZxyz(8.9547, 4.7453, 35.0873)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23A3 #8CA323
analogous
#234CA3 #3A23A3 #7A23A3
triadic
#3A23A3 #A33A23 #23A33A
tetradic
#3A23A3 #A3234C #8CA323 #23A37A
square
#3A23A3 #A3234C #8CA323 #23A37A
split-complementary
#3A23A3 #A37A23 #4CA323
monochromatic
#160D3E #281871 #3A23A3 #4E31D3 #7963DD

Accessibility & contrast

On white

10.77
#3A23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A23A3
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23A3#FFFFFF#000000##FFFFFF
##3A23A31.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a23a3;
/* rgb */ color: rgb(58, 35, 163);
/* oklch */ color: oklch(38.3% 0.190 280.7);
Tailwind
colors: {
  custom: {
    50: '#7f62bf',
    500: '#3a23a3',
    950: '#000000',
  },
}
SCSS
$custom: #3a23a3;
$custom-light: #7f62bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23a3",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 250.781,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38274,
    "c": 0.19008,
    "h": 280.7
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#3A23A3
secondary
#B1C35F
accent
#E840CA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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