#2F122E#2F122E

#2F122E is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.065 H 328.7°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#2F122E
RGBrgb(47, 18, 46)
HSLhsl(302, 45%, 13%)
HSVhsv(302, 62%, 18%)
CMYKcmyk(0%, 61.7%, 2.1%, 81.6%)
CIE-LABlab(10.81, 19.71, -12.27)
CIE-LCHlch(10.81, 23.22, 328.10°)
OKLaboklab(23.93% 0.0552 -0.0336)
OKLCHoklch(23.93% 0.065 328.7)
XYZxyz(1.8817, 1.2343, 2.7234)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F122E #122F13
analogous
#21122F #2F122E #2F121F
triadic
#2F122E #2E2F12 #122E2F
tetradic
#2F122E #2F2112 #122F13 #121F2F
square
#2F122E #2F2112 #122F13 #121F2F
split-complementary
#2F122E #1F2F12 #122F21
monochromatic
#160816 #160816 #2F122E #5B2359 #883485

Accessibility & contrast

On white

16.84
#2F122E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F122E
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F122E#FFFFFF#000000##FFFFFF
##2F122E1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101B2F
Deuteranopia (green-blind)
#181E2D
Tritanopia (blue-blind)
#31151D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f122e;
/* rgb */ color: rgb(47, 18, 46);
/* oklch */ color: oklch(23.9% 0.065 328.7);
Tailwind
colors: {
  custom: {
    50: '#685166',
    500: '#2f122e',
    950: '#000000',
  },
}
SCSS
$custom: #2f122e;
$custom-light: #685166;
$custom-dark: #000000;
JSON
{
  "hex": "#2f122e",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 46
  },
  "hsl": {
    "h": 302.069,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23927,
    "c": 0.06465,
    "h": 328.7
  },
  "luminance": 0.01234
}

Semantic roles & 50–950 ramp

primary
#2F122E
secondary
#366738
accent
#D45853
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2F122E

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

Preview Lab → · Contrast checker → · Palette generator →

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