#2A102F#2A102F

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

Color values

HEX#2A102F
RGBrgb(42, 16, 47)
HSLhsl(290, 49%, 12%)
HSVhsv(290, 66%, 18%)
CMYKcmyk(10.6%, 66%, 0%, 81.6%)
CIE-LABlab(9.55, 19.43, -15.04)
CIE-LCHlch(9.55, 24.58, 322.26°)
OKLaboklab(22.84% 0.0515 -0.0417)
OKLCHoklch(22.84% 0.066 321)
XYZxyz(1.6532, 1.0681, 2.8079)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A102F #152F10
analogous
#1B102F #2A102F #2F1024
triadic
#2A102F #2F2A10 #102F2A
tetradic
#2A102F #2F1B10 #152F10 #10242F
square
#2A102F #2F1B10 #152F10 #10242F
split-complementary
#2A102F #242F10 #102F1B
monochromatic
#140817 #140817 #2A102F #53205D #7C2F8A

Accessibility & contrast

On white

17.30
#2A102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A102F
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A102F#FFFFFF#000000##FFFFFF
##2A102F1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1930
Deuteranopia (green-blind)
#131C2E
Tritanopia (blue-blind)
#2A141D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a102f;
/* rgb */ color: rgb(42, 16, 47);
/* oklch */ color: oklch(22.8% 0.066 321.0);
Tailwind
colors: {
  custom: {
    50: '#654f67',
    500: '#2a102f',
    950: '#000000',
  },
}
SCSS
$custom: #2a102f;
$custom-light: #654f67;
$custom-dark: #000000;
JSON
{
  "hex": "#2a102f",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 290.323,
    "s": 49.206,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22839,
    "c": 0.06625,
    "h": 321
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#2A102F
secondary
#3B6833
accent
#D94F65
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A102F

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

Preview Lab → · Contrast checker → · Palette generator →

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