#3A23A5#3A23A5

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

Color values

HEX#3A23A5
RGBrgb(58, 35, 165)
HSLhsl(251, 65%, 39%)
HSVhsv(251, 79%, 65%)
CMYKcmyk(64.8%, 78.8%, 0%, 35.3%)
CIE-LABlab(26.21, 47.10, -65.57)
CIE-LCHlch(26.21, 80.74, 305.69°)
OKLaboklab(38.49% 0.0349 -0.1893)
OKLCHoklch(38.49% 0.192 280.4)
XYZxyz(9.1353, 4.8175, 36.0385)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23A5 #8EA523
analogous
#234DA5 #3A23A5 #7B23A5
triadic
#3A23A5 #A53A23 #23A53A
tetradic
#3A23A5 #A5234D #8EA523 #23A57B
square
#3A23A5 #A5234D #8EA523 #23A57B
split-complementary
#3A23A5 #A57B23 #4DA523
monochromatic
#170E40 #281873 #3A23A5 #4E32D3 #7A64DE

Accessibility & contrast

On white

10.69
#3A23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A23A5
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23A5#FFFFFF#000000##FFFFFF
##3A23A51.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a23a5;
/* rgb */ color: rgb(58, 35, 165);
/* oklch */ color: oklch(38.5% 0.192 280.4);
Tailwind
colors: {
  custom: {
    50: '#7f62c1',
    500: '#3a23a5',
    950: '#000000',
  },
}
SCSS
$custom: #3a23a5;
$custom-light: #7f62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23a5",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 250.615,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38485,
    "c": 0.19245,
    "h": 280.4
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#3A23A5
secondary
#B2C460
accent
#E840CA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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