#2F0127#2F0127

#2F0127 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.0% C 0.090 H 336.5°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#2F0127
RGBrgb(47, 1, 39)
HSLhsl(310, 96%, 9%)
HSVhsv(310, 98%, 18%)
CMYKcmyk(0%, 97.9%, 17%, 81.6%)
CIE-LABlab(6.98, 27.73, -13.03)
CIE-LCHlch(6.98, 30.64, 334.83°)
OKLaboklab(20.98% 0.0824 -0.0358)
OKLCHoklch(20.98% 0.09 336.5)
XYZxyz(1.5494, 0.7727, 1.9866)
Luminance0.0077 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0127 #012F09
analogous
#20012F #2F0127 #2F0110
triadic
#2F0127 #272F01 #01272F
tetradic
#2F0127 #2F2001 #012F09 #01102F
square
#2F0127 #2F2001 #012F09 #01102F
split-complementary
#2F0127 #102F01 #012F20
monochromatic
#1E0119 #1E0119 #2F0127 #6B0259 #A7048A

Accessibility & contrast

On white

18.19
#2F0127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0127
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0127#FFFFFF#000000##FFFFFF
##2F01271.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021128
Deuteranopia (green-blind)
#121826
Tritanopia (blue-blind)
#320313
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2f0127;
/* rgb */ color: rgb(47, 1, 39);
/* oklch */ color: oklch(21.0% 0.090 336.5);
Tailwind
colors: {
  custom: {
    50: '#6a4761',
    500: '#2f0127',
    950: '#000000',
  },
}
SCSS
$custom: #2f0127;
$custom-light: #6a4761;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0127",
  "rgb": {
    "r": 47,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 310.435,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20976,
    "c": 0.08984,
    "h": 336.5
  },
  "luminance": 0.00773
}

Semantic roles & 50–950 ramp

primary
#2F0127
secondary
#177527
accent
#FF4E29
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#070005
muted
#7A7779

Preview Lab

Preview with #2F0127

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

Preview Lab → · Contrast checker → · Palette generator →

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