#2A0128#2A0128

#2A0128 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.0% C 0.088 H 330.4°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#2A0128
RGBrgb(42, 1, 40)
HSLhsl(303, 95%, 8%)
HSVhsv(303, 98%, 16%)
CMYKcmyk(0%, 97.6%, 4.8%, 83.5%)
CIE-LABlab(6.03, 26.10, -15.36)
CIE-LCHlch(6.03, 30.28, 329.53°)
OKLaboklab(20.01% 0.0765 -0.0434)
OKLCHoklch(20.01% 0.088 330.4)
XYZxyz(1.3487, 0.6673, 2.0648)
Luminance0.0067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0128 #012A03
analogous
#17012A #2A0128 #2A0113
triadic
#2A0128 #282A01 #01282A
tetradic
#2A0128 #2A1701 #012A03 #01132A
square
#2A0128 #2A1701 #012A03 #01132A
split-complementary
#2A0128 #132A01 #012A17
monochromatic
#1E011C #1E011C #2A0128 #660261 #A2049A

Accessibility & contrast

On white

18.53
#2A0128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#2A0128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0128
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0128#FFFFFF#000000##FFFFFF
##2A01281.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001029
Deuteranopia (green-blind)
#0D1527
Tritanopia (blue-blind)
#2C0514
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #2a0128;
/* rgb */ color: rgb(42, 1, 40);
/* oklch */ color: oklch(20.0% 0.088 330.4);
Tailwind
colors: {
  custom: {
    50: '#654662',
    500: '#2a0128',
    950: '#000000',
  },
}
SCSS
$custom: #2a0128;
$custom-light: #654662;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0128",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 302.927,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.2001,
    "c": 0.08792,
    "h": 330.4
  },
  "luminance": 0.00667
}

Semantic roles & 50–950 ramp

primary
#2A0128
secondary
#16701B
accent
#FF3329
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2A0128

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

Preview Lab → · Contrast checker → · Palette generator →

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