#2A1027#2A1027

#2A1027 is a very dark, muted purple. Relative luminance 0.010; OKLCH L 22.3% C 0.057 H 331.8°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#2A1027
RGBrgb(42, 16, 39)
HSLhsl(307, 45%, 11%)
HSVhsv(307, 62%, 16%)
CMYKcmyk(0%, 61.9%, 7.1%, 83.5%)
CIE-LABlab(9.07, 17.53, -9.85)
CIE-LCHlch(9.07, 20.11, 330.68°)
OKLaboklab(22.33% 0.05 -0.0268)
OKLCHoklch(22.33% 0.057 331.8)
XYZxyz(1.5063, 1.0094, 2.0346)
Luminance0.0101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1027 #102A13
analogous
#20102A #2A1027 #2A101A
triadic
#2A1027 #272A10 #10272A
tetradic
#2A1027 #2A2010 #102A13 #101A2A
square
#2A1027 #2A2010 #102A13 #101A2A
split-complementary
#2A1027 #1A2A10 #102A20
monochromatic
#160815 #160815 #2A1027 #562150 #833279

Accessibility & contrast

On white

17.47
#2A1027 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A1027 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1027
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1027#FFFFFF#000000##FFFFFF
##2A10271.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1728
Deuteranopia (green-blind)
#171B26
Tritanopia (blue-blind)
#2C1219
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a1027;
/* rgb */ color: rgb(42, 16, 39);
/* oklch */ color: oklch(22.3% 0.057 331.8);
Tailwind
colors: {
  custom: {
    50: '#644f61',
    500: '#2a1027',
    950: '#000000',
  },
}
SCSS
$custom: #2a1027;
$custom-light: #644f61;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1027",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 39
  },
  "hsl": {
    "h": 306.923,
    "s": 44.828,
    "l": 11.373
  },
  "oklch": {
    "l": 0.22331,
    "c": 0.05669,
    "h": 331.8
  },
  "luminance": 0.01009
}

Semantic roles & 50–950 ramp

primary
#2A1027
secondary
#336239
accent
#D56253
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#050205
muted
#7A7879

Preview Lab

Preview with #2A1027

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

Preview Lab → · Contrast checker → · Palette generator →

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