#2A1130#2A1130

#2A1130 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.1% C 0.066 H 319.6°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1130
RGBrgb(42, 17, 48)
HSLhsl(288, 48%, 13%)
HSVhsv(288, 65%, 19%)
CMYKcmyk(12.5%, 64.6%, 0%, 81.2%)
CIE-LABlab(9.85, 19.05, -15.30)
CIE-LCHlch(9.85, 24.43, 321.23°)
OKLaboklab(23.08% 0.0499 -0.0425)
OKLCHoklch(23.08% 0.066 319.6)
XYZxyz(1.6887, 1.1066, 2.9204)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1130 #173011
analogous
#1A1130 #2A1130 #301126
triadic
#2A1130 #302A11 #11302A
tetradic
#2A1130 #301A11 #173011 #112630
square
#2A1130 #301A11 #173011 #112630
split-complementary
#2A1130 #263011 #11301A
monochromatic
#140817 #140817 #2A1130 #52215D #79318A

Accessibility & contrast

On white

17.19
#2A1130 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A1130 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1130
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1130#FFFFFF#000000##FFFFFF
##2A11301.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1931
Deuteranopia (green-blind)
#131C2F
Tritanopia (blue-blind)
#2A161E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a1130;
/* rgb */ color: rgb(42, 17, 48);
/* oklch */ color: oklch(23.1% 0.066 319.6);
Tailwind
colors: {
  custom: {
    50: '#645068',
    500: '#2a1130',
    950: '#000000',
  },
}
SCSS
$custom: #2a1130;
$custom-light: #645068;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1130",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 48
  },
  "hsl": {
    "h": 288.387,
    "s": 47.692,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23083,
    "c": 0.0655,
    "h": 319.6
  },
  "luminance": 0.01107
}

Semantic roles & 50–950 ramp

primary
#2A1130
secondary
#3E6934
accent
#D7516B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A1130

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

Preview Lab → · Contrast checker → · Palette generator →

#2A1130 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva