#3A23A9#3A23A9

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

Color values

HEX#3A23A9
RGBrgb(58, 35, 169)
HSLhsl(250, 66%, 40%)
HSVhsv(250, 79%, 66%)
CMYKcmyk(65.7%, 79.3%, 0%, 33.7%)
CIE-LABlab(26.64, 48.31, -67.28)
CIE-LCHlch(26.64, 82.83, 305.68°)
OKLaboklab(38.91% 0.0337 -0.1942)
OKLCHoklch(38.91% 0.197 279.8)
XYZxyz(9.5051, 4.9654, 37.9859)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23A9 #92A923
analogous
#234FA9 #3A23A9 #7D23A9
triadic
#3A23A9 #A93A23 #23A93A
tetradic
#3A23A9 #A9234F #92A923 #23A97D
square
#3A23A9 #A9234F #92A923 #23A97D
split-complementary
#3A23A9 #A97D23 #4FA923
monochromatic
#170E44 #291976 #3A23A9 #5034D5 #7C67DF

Accessibility & contrast

On white

10.54
#3A23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3A23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A23A9
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23A9#FFFFFF#000000##FFFFFF
##3A23A91.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#003AA7
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a23a9;
/* rgb */ color: rgb(58, 35, 169);
/* oklch */ color: oklch(38.9% 0.197 279.8);
Tailwind
colors: {
  custom: {
    50: '#8062c4',
    500: '#3a23a9',
    950: '#000000',
  },
}
SCSS
$custom: #3a23a9;
$custom-light: #8062c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23a9",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 250.299,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.3891,
    "c": 0.19716,
    "h": 279.8
  },
  "luminance": 0.04966
}

Semantic roles & 50–950 ramp

primary
#3A23A9
secondary
#B4C563
accent
#E93FCC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3A23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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