#2A102A#2A102A

#2A102A is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.5% C 0.060 H 327.3°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#2A102A
RGBrgb(42, 16, 42)
HSLhsl(300, 45%, 11%)
HSVhsv(300, 62%, 16%)
CMYKcmyk(0%, 61.9%, 0%, 83.5%)
CIE-LABlab(9.24, 18.22, -11.82)
CIE-LCHlch(9.24, 21.72, 327.02°)
OKLaboklab(22.51% 0.0506 -0.0324)
OKLCHoklch(22.51% 0.06 327.3)
XYZxyz(1.5580, 1.0301, 2.3068)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A102A #102A10
analogous
#1D102A #2A102A #2A101D
triadic
#2A102A #2A2A10 #102A2A
tetradic
#2A102A #2A1D10 #102A10 #101D2A
square
#2A102A #2A1D10 #102A10 #101D2A
split-complementary
#2A102A #1D2A10 #102A1D
monochromatic
#160816 #160816 #2A102A #562156 #833283

Accessibility & contrast

On white

17.41
#2A102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2A102A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A102A
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A102A#FFFFFF#000000##FFFFFF
##2A102A1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E182B
Deuteranopia (green-blind)
#151B29
Tritanopia (blue-blind)
#2B131B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a102a;
/* rgb */ color: rgb(42, 16, 42);
/* oklch */ color: oklch(22.5% 0.060 327.3);
Tailwind
colors: {
  custom: {
    50: '#644f63',
    500: '#2a102a',
    950: '#000000',
  },
}
SCSS
$custom: #2a102a;
$custom-light: #644f63;
$custom-dark: #000000;
JSON
{
  "hex": "#2a102a",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 44.828,
    "l": 11.373
  },
  "oklch": {
    "l": 0.22513,
    "c": 0.06014,
    "h": 327.3
  },
  "luminance": 0.0103
}

Semantic roles & 50–950 ramp

primary
#2A102A
secondary
#336233
accent
#D55353
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#050205
muted
#7A7879

Preview Lab

Preview with #2A102A

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

Preview Lab → · Contrast checker → · Palette generator →

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