#2A1230#2A1230

#2A1230 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.063 H 319.3°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#2A1230
RGBrgb(42, 18, 48)
HSLhsl(288, 45%, 13%)
HSVhsv(288, 63%, 19%)
CMYKcmyk(12.5%, 62.5%, 0%, 81.2%)
CIE-LABlab(10.09, 18.40, -14.91)
CIE-LCHlch(10.09, 23.69, 320.98°)
OKLaboklab(23.26% 0.0481 -0.0414)
OKLCHoklch(23.26% 0.063 319.3)
XYZxyz(1.7046, 1.1383, 2.9257)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1230 #183012
analogous
#1B1230 #2A1230 #301227
triadic
#2A1230 #302A12 #12302A
tetradic
#2A1230 #301B12 #183012 #122730
square
#2A1230 #301B12 #183012 #122730
split-complementary
#2A1230 #273012 #12301B
monochromatic
#130816 #130816 #2A1230 #51235D #783389

Accessibility & contrast

On white

17.11
#2A1230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A1230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1230
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1230#FFFFFF#000000##FFFFFF
##2A12301.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1A31
Deuteranopia (green-blind)
#141D2F
Tritanopia (blue-blind)
#2A161E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a1230;
/* rgb */ color: rgb(42, 18, 48);
/* oklch */ color: oklch(23.3% 0.063 319.3);
Tailwind
colors: {
  custom: {
    50: '#645168',
    500: '#2a1230',
    950: '#000000',
  },
}
SCSS
$custom: #2a1230;
$custom-light: #645168;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1230",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 48
  },
  "hsl": {
    "h": 288,
    "s": 45.455,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23263,
    "c": 0.06346,
    "h": 319.3
  },
  "luminance": 0.01138
}

Semantic roles & 50–950 ramp

primary
#2A1230
secondary
#406836
accent
#D5536D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A1230

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

Preview Lab → · Contrast checker → · Palette generator →

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