#2F122C#2F122C

#2F122C is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.062 H 331.4°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#2F122C
RGBrgb(47, 18, 44)
HSLhsl(306, 45%, 13%)
HSVhsv(306, 62%, 18%)
CMYKcmyk(0%, 61.7%, 6.4%, 81.6%)
CIE-LABlab(10.70, 19.26, -10.97)
CIE-LCHlch(10.70, 22.17, 330.33°)
OKLaboklab(23.81% 0.0548 -0.0299)
OKLCHoklch(23.81% 0.062 331.4)
XYZxyz(1.8432, 1.2189, 2.5206)
Luminance0.0122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F122C #122F15
analogous
#23122F #2F122C #2F121D
triadic
#2F122C #2C2F12 #122C2F
tetradic
#2F122C #2F2312 #122F15 #121D2F
square
#2F122C #2F2312 #122F15 #121D2F
split-complementary
#2F122C #1D2F12 #122F23
monochromatic
#160815 #160815 #2F122C #5B2355 #88347F

Accessibility & contrast

On white

16.88
#2F122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2F122C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F122C
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F122C#FFFFFF#000000##FFFFFF
##2F122C1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111A2D
Deuteranopia (green-blind)
#191E2B
Tritanopia (blue-blind)
#31141D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f122c;
/* rgb */ color: rgb(47, 18, 44);
/* oklch */ color: oklch(23.8% 0.062 331.4);
Tailwind
colors: {
  custom: {
    50: '#685165',
    500: '#2f122c',
    950: '#000000',
  },
}
SCSS
$custom: #2f122c;
$custom-light: #685165;
$custom-dark: #000000;
JSON
{
  "hex": "#2f122c",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 306.207,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23807,
    "c": 0.06242,
    "h": 331.4
  },
  "luminance": 0.01219
}

Semantic roles & 50–950 ramp

primary
#2F122C
secondary
#36673B
accent
#D46153
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060205
muted
#7A787A

Preview Lab

Preview with #2F122C

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

Preview Lab → · Contrast checker → · Palette generator →

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