#2F0227#2F0227

#2F0227 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.1% C 0.088 H 336.6°. Best body text is #FFFFFF at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#2F0227
RGBrgb(47, 2, 39)
HSLhsl(311, 92%, 10%)
HSVhsv(311, 96%, 18%)
CMYKcmyk(0%, 95.7%, 17%, 81.6%)
CIE-LABlab(7.18, 27.18, -12.73)
CIE-LCHlch(7.18, 30.01, 334.91°)
OKLaboklab(21.13% 0.0805 -0.0349)
OKLCHoklch(21.13% 0.088 336.6)
XYZxyz(1.5602, 0.7944, 1.9902)
Luminance0.0079 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0227 #022F0A
analogous
#21022F #2F0227 #2F0210
triadic
#2F0227 #272F02 #02272F
tetradic
#2F0227 #2F2102 #022F0A #02102F
square
#2F0227 #2F2102 #022F0A #02102F
split-complementary
#2F0227 #102F02 #022F21
monochromatic
#1D0118 #1D0118 #2F0227 #6A0458 #A40788

Accessibility & contrast

On white

18.12
#2F0227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2F0227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0227
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0227#FFFFFF#000000##FFFFFF
##2F02271.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031128
Deuteranopia (green-blind)
#131826
Tritanopia (blue-blind)
#320413
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2f0227;
/* rgb */ color: rgb(47, 2, 39);
/* oklch */ color: oklch(21.1% 0.088 336.6);
Tailwind
colors: {
  custom: {
    50: '#6a4861',
    500: '#2f0227',
    950: '#000000',
  },
}
SCSS
$custom: #2f0227;
$custom-light: #6a4861;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0227",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 310.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21128,
    "c": 0.08774,
    "h": 336.6
  },
  "luminance": 0.00794
}

Semantic roles & 50–950 ramp

primary
#2F0227
secondary
#197429
accent
#FF4F29
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#070005
muted
#7A7779

Preview Lab

Preview with #2F0227

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

Preview Lab → · Contrast checker → · Palette generator →

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