#2A0127#2A0127

#2A0127 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 19.9% C 0.087 H 331.5°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#2A0127
RGBrgb(42, 1, 39)
HSLhsl(304, 95%, 8%)
HSVhsv(304, 98%, 16%)
CMYKcmyk(0%, 97.6%, 7.1%, 83.5%)
CIE-LABlab(5.97, 25.86, -14.69)
CIE-LCHlch(5.97, 29.74, 330.41°)
OKLaboklab(19.93% 0.0765 -0.0415)
OKLCHoklch(19.93% 0.087 331.5)
XYZxyz(1.3319, 0.6605, 1.9764)
Luminance0.0066 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0127 #012A04
analogous
#18012A #2A0127 #2A0112
triadic
#2A0127 #272A01 #01272A
tetradic
#2A0127 #2A1801 #012A04 #01122A
square
#2A0127 #2A1801 #012A04 #01122A
split-complementary
#2A0127 #122A01 #012A18
monochromatic
#1E011C #1E011C #2A0127 #66025F #A20496

Accessibility & contrast

On white

18.55
#2A0127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0127
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0127#FFFFFF#000000##FFFFFF
##2A01271.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F28
Deuteranopia (green-blind)
#0D1526
Tritanopia (blue-blind)
#2C0513
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #2a0127;
/* rgb */ color: rgb(42, 1, 39);
/* oklch */ color: oklch(19.9% 0.087 331.5);
Tailwind
colors: {
  custom: {
    50: '#654661',
    500: '#2a0127',
    950: '#000000',
  },
}
SCSS
$custom: #2a0127;
$custom-light: #654661;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0127",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 304.39,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.19934,
    "c": 0.08706,
    "h": 331.5
  },
  "luminance": 0.0066
}

Semantic roles & 50–950 ramp

primary
#2A0127
secondary
#16701D
accent
#FF3829
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2A0127

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

Preview Lab → · Contrast checker → · Palette generator →

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