#2F122F#2F122F

#2F122F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.066 H 327.4°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2F122F
RGBrgb(47, 18, 47)
HSLhsl(300, 45%, 13%)
HSVhsv(300, 62%, 18%)
CMYKcmyk(0%, 61.7%, 0%, 81.6%)
CIE-LABlab(10.87, 19.94, -12.91)
CIE-LCHlch(10.87, 23.75, 327.07°)
OKLaboklab(23.99% 0.0554 -0.0355)
OKLCHoklch(23.99% 0.066 327.4)
XYZxyz(1.9017, 1.2423, 2.8284)
Luminance0.0124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F122F #122F12
analogous
#20122F #2F122F #2F1220
triadic
#2F122F #2F2F12 #122F2F
tetradic
#2F122F #2F2012 #122F12 #12202F
square
#2F122F #2F2012 #122F12 #12202F
split-complementary
#2F122F #202F12 #122F20
monochromatic
#160816 #160816 #2F122F #5B235B #883488

Accessibility & contrast

On white

16.82
#2F122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F122F
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F122F#FFFFFF#000000##FFFFFF
##2F122F1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1B30
Deuteranopia (green-blind)
#181F2E
Tritanopia (blue-blind)
#31151E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f122f;
/* rgb */ color: rgb(47, 18, 47);
/* oklch */ color: oklch(24.0% 0.066 327.4);
Tailwind
colors: {
  custom: {
    50: '#695167',
    500: '#2f122f',
    950: '#000000',
  },
}
SCSS
$custom: #2f122f;
$custom-light: #695167;
$custom-dark: #000000;
JSON
{
  "hex": "#2f122f",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 300,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23988,
    "c": 0.06579,
    "h": 327.4
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#2F122F
secondary
#366736
accent
#D45353
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2F122F

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

Preview Lab → · Contrast checker → · Palette generator →

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