#2A1830#2A1830

#2A1830 is a very dark, muted purple. Relative luminance 0.014; OKLCH L 24.4% C 0.051 H 317.3°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#2A1830
RGBrgb(42, 24, 48)
HSLhsl(285, 33%, 14%)
HSVhsv(285, 50%, 19%)
CMYKcmyk(12.5%, 50%, 0%, 81.2%)
CIE-LABlab(11.68, 14.32, -12.43)
CIE-LCHlch(11.68, 18.96, 319.06°)
OKLaboklab(24.45% 0.0372 -0.0343)
OKLCHoklch(24.45% 0.051 317.3)
XYZxyz(1.8149, 1.3590, 2.9624)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1830 #1E3018
analogous
#1E1830 #2A1830 #30182A
triadic
#2A1830 #302A18 #18302A
tetradic
#2A1830 #301E18 #1E3018 #182A30
square
#2A1830 #301E18 #1E3018 #182A30
split-complementary
#2A1830 #2A3018 #18301E
monochromatic
#120A14 #120A14 #2A1830 #4E2C59 #714182

Accessibility & contrast

On white

16.51
#2A1830 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A1830 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1830
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1830#FFFFFF#000000##FFFFFF
##2A18301.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141E31
Deuteranopia (green-blind)
#191F2F
Tritanopia (blue-blind)
#2A1B21
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1830;
/* rgb */ color: rgb(42, 24, 48);
/* oklch */ color: oklch(24.4% 0.051 317.3);
Tailwind
colors: {
  custom: {
    50: '#645568',
    500: '#2a1830',
    950: '#000000',
  },
}
SCSS
$custom: #2a1830;
$custom-light: #645568;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1830",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 48
  },
  "hsl": {
    "h": 285,
    "s": 33.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24445,
    "c": 0.05056,
    "h": 317.3
  },
  "luminance": 0.01359
}

Semantic roles & 50–950 ramp

primary
#2A1830
secondary
#48653F
accent
#C95E79
background
#F6F4F6
surface
#EBE8EB
border
#C6C4C6
text
#050306
muted
#7A787A

Preview Lab

Preview with #2A1830

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

Preview Lab → · Contrast checker → · Palette generator →

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