#3A24A0#3A24A0

#3A24A0 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.186 H 281.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#3A24A0
RGBrgb(58, 36, 160)
HSLhsl(251, 63%, 38%)
HSVhsv(251, 78%, 63%)
CMYKcmyk(63.8%, 77.5%, 0%, 37.3%)
CIE-LABlab(25.86, 45.08, -63.11)
CIE-LCHlch(25.86, 77.56, 305.53°)
OKLaboklab(38.08% 0.0356 -0.1821)
OKLCHoklch(38.08% 0.186 281.1)
XYZxyz(8.7190, 4.6987, 33.6984)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A24A0 #8AA024
analogous
#244CA0 #3A24A0 #7824A0
triadic
#3A24A0 #A03A24 #24A03A
tetradic
#3A24A0 #A0244C #8AA024 #24A078
square
#3A24A0 #A0244C #8AA024 #24A078
split-complementary
#3A24A0 #A07824 #4CA024
monochromatic
#160E3C #28196E #3A24A0 #4D31D1 #7863DC

Accessibility & contrast

On white

10.83
#3A24A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A24A0
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A24A0#FFFFFF#000000##FFFFFF
##3A24A01.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00399E
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a24a0;
/* rgb */ color: rgb(58, 36, 160);
/* oklch */ color: oklch(38.1% 0.186 281.1);
Tailwind
colors: {
  custom: {
    50: '#7e62bd',
    500: '#3a24a0',
    950: '#000000',
  },
}
SCSS
$custom: #3a24a0;
$custom-light: #7e62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a24a0",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 160
  },
  "hsl": {
    "h": 250.645,
    "s": 63.265,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38083,
    "c": 0.18556,
    "h": 281.1
  },
  "luminance": 0.04699
}

Semantic roles & 50–950 ramp

primary
#3A24A0
secondary
#B0C15F
accent
#E641C9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A24A0

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

Preview Lab → · Contrast checker → · Palette generator →

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