#3A23AB#3A23AB

#3A23AB is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.199 H 279.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#3A23AB
RGBrgb(58, 35, 171)
HSLhsl(250, 66%, 40%)
HSVhsv(250, 80%, 67%)
CMYKcmyk(66.1%, 79.5%, 0%, 32.9%)
CIE-LABlab(26.85, 48.91, -68.13)
CIE-LCHlch(26.85, 83.87, 305.67°)
OKLaboklab(39.12% 0.0332 -0.1967)
OKLCHoklch(39.12% 0.199 279.6)
XYZxyz(9.6943, 5.0411, 38.9823)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23AB #94AB23
analogous
#2350AB #3A23AB #7E23AB
triadic
#3A23AB #AB3A23 #23AB3A
tetradic
#3A23AB #AB2350 #94AB23 #23AB7E
square
#3A23AB #AB2350 #94AB23 #23AB7E
split-complementary
#3A23AB #AB7E23 #50AB23
monochromatic
#180E45 #291978 #3A23AB #5135D6 #7D68E0

Accessibility & contrast

On white

10.46
#3A23AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3A23AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A23AB
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23AB#FFFFFF#000000##FFFFFF
##3A23AB1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a23ab;
/* rgb */ color: rgb(58, 35, 171);
/* oklch */ color: oklch(39.1% 0.199 279.6);
Tailwind
colors: {
  custom: {
    50: '#8062c5',
    500: '#3a23ab',
    950: '#000000',
  },
}
SCSS
$custom: #3a23ab;
$custom-light: #8062c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23ab",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 171
  },
  "hsl": {
    "h": 250.147,
    "s": 66.019,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39124,
    "c": 0.19949,
    "h": 279.6
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A23AB

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

Preview Lab → · Contrast checker → · Palette generator →

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