#2F0126#2F0126

#2F0126 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 20.9% C 0.089 H 337.6°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#2F0126
RGBrgb(47, 1, 38)
HSLhsl(312, 96%, 9%)
HSVhsv(312, 98%, 18%)
CMYKcmyk(0%, 97.9%, 19.1%, 81.6%)
CIE-LABlab(6.92, 27.54, -12.36)
CIE-LCHlch(6.92, 30.18, 335.82°)
OKLaboklab(20.91% 0.0823 -0.0339)
OKLCHoklch(20.91% 0.089 337.6)
XYZxyz(1.5330, 0.7661, 1.9005)
Luminance0.0077 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0126 #012F0A
analogous
#21012F #2F0126 #2F010F
triadic
#2F0126 #262F01 #01262F
tetradic
#2F0126 #2F2101 #012F0A #010F2F
square
#2F0126 #2F2101 #012F0A #010F2F
split-complementary
#2F0126 #0F2F01 #012F21
monochromatic
#1E0118 #1E0118 #2F0126 #6B0256 #A70487

Accessibility & contrast

On white

18.21
#2F0126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2F0126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0126
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0126#FFFFFF#000000##FFFFFF
##2F01261.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021127
Deuteranopia (green-blind)
#131825
Tritanopia (blue-blind)
#320312
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2f0126;
/* rgb */ color: rgb(47, 1, 38);
/* oklch */ color: oklch(20.9% 0.089 337.6);
Tailwind
colors: {
  custom: {
    50: '#6a4760',
    500: '#2f0126',
    950: '#000000',
  },
}
SCSS
$custom: #2f0126;
$custom-light: #6a4760;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0126",
  "rgb": {
    "r": 47,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 311.739,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20909,
    "c": 0.08905,
    "h": 337.6
  },
  "luminance": 0.00766
}

Semantic roles & 50–950 ramp

primary
#2F0126
secondary
#177529
accent
#FF5329
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#070005
muted
#7A7779

Preview Lab

Preview with #2F0126

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

Preview Lab → · Contrast checker → · Palette generator →

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