#3A23A2#3A23A2

#3A23A2 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.189 H 280.9°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#3A23A2
RGBrgb(58, 35, 162)
HSLhsl(251, 64%, 39%)
HSVhsv(251, 78%, 64%)
CMYKcmyk(64.2%, 78.4%, 0%, 36.5%)
CIE-LABlab(25.89, 46.19, -64.28)
CIE-LCHlch(25.89, 79.15, 305.70°)
OKLaboklab(38.17% 0.0357 -0.1855)
OKLCHoklch(38.17% 0.189 280.9)
XYZxyz(8.8655, 4.7096, 34.6173)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23A2 #8BA223
analogous
#234BA2 #3A23A2 #7923A2
triadic
#3A23A2 #A23A23 #23A23A
tetradic
#3A23A2 #A2234B #8BA223 #23A279
square
#3A23A2 #A2234B #8BA223 #23A279
split-complementary
#3A23A2 #A27923 #4BA223
monochromatic
#160D3D #281870 #3A23A2 #4D30D2 #7962DD

Accessibility & contrast

On white

10.81
#3A23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3A23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A23A2
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23A2#FFFFFF#000000##FFFFFF
##3A23A21.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a23a2;
/* rgb */ color: rgb(58, 35, 162);
/* oklch */ color: oklch(38.2% 0.189 280.9);
Tailwind
colors: {
  custom: {
    50: '#7e62bf',
    500: '#3a23a2',
    950: '#000000',
  },
}
SCSS
$custom: #3a23a2;
$custom-light: #7e62bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23a2",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 250.866,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38169,
    "c": 0.18889,
    "h": 280.9
  },
  "luminance": 0.0471
}

Semantic roles & 50–950 ramp

primary
#3A23A2
secondary
#B0C25E
accent
#E740C9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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