#2A0118#2A0118

#2A0118 is a very dark, moderate pink. Relative luminance 0.006; OKLCH L 19.0% C 0.076 H 350.6°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#2A0118
RGBrgb(42, 1, 24)
HSLhsl(326, 95%, 8%)
HSVhsv(326, 98%, 16%)
CMYKcmyk(0%, 97.6%, 42.9%, 83.5%)
CIE-LABlab(5.24, 22.59, -4.07)
CIE-LCHlch(5.24, 22.95, 349.77°)
OKLaboklab(18.98% 0.0747 -0.0124)
OKLCHoklch(18.98% 0.076 350.6)
XYZxyz(1.1306, 0.5800, 0.9164)
Luminance0.0058 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0118 #012A13
analogous
#27012A #2A0118 #2A0104
triadic
#2A0118 #182A01 #01182A
tetradic
#2A0118 #2A2701 #012A13 #01042A
square
#2A0118 #2A2701 #012A13 #01042A
split-complementary
#2A0118 #042A01 #012A27
monochromatic
#1E0111 #1E0111 #2A0118 #66023A #A2045C

Accessibility & contrast

On white

18.82
#2A0118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#2A0118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0118
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0118#FFFFFF#000000##FFFFFF
##2A01181.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070C19
Deuteranopia (green-blind)
#131417
Tritanopia (blue-blind)
#2E000A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #2a0118;
/* rgb */ color: rgb(42, 1, 24);
/* oklch */ color: oklch(19.0% 0.076 350.6);
Tailwind
colors: {
  custom: {
    50: '#664654',
    500: '#2a0118',
    950: '#000000',
  },
}
SCSS
$custom: #2a0118;
$custom-light: #664654;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0118",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 24
  },
  "hsl": {
    "h": 326.341,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18975,
    "c": 0.07575,
    "h": 350.6
  },
  "luminance": 0.0058
}

Semantic roles & 50–950 ramp

primary
#2A0118
secondary
#16703E
accent
#FF8729
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#060002
muted
#7A7778

Preview Lab

Preview with #2A0118

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

Preview Lab → · Contrast checker → · Palette generator →

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