#2F1233#2F1233

#2F1233 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.2% C 0.071 H 322.6°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#2F1233
RGBrgb(47, 18, 51)
HSLhsl(293, 48%, 14%)
HSVhsv(293, 65%, 20%)
CMYKcmyk(7.8%, 64.7%, 0%, 80%)
CIE-LABlab(11.11, 20.88, -15.45)
CIE-LCHlch(11.11, 25.97, 323.50°)
OKLaboklab(24.24% 0.0561 -0.0428)
OKLCHoklch(24.24% 0.071 322.6)
XYZxyz(1.9861, 1.2761, 3.2730)
Luminance0.0128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1233 #163312
analogous
#1E1233 #2F1233 #331226
triadic
#2F1233 #332F12 #12332F
tetradic
#2F1233 #331E12 #163312 #122633
square
#2F1233 #331E12 #163312 #122633
split-complementary
#2F1233 #263312 #12331E
monochromatic
#150817 #150817 #2F1233 #592260 #82328D

Accessibility & contrast

On white

16.73
#2F1233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F1233 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1233
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1233#FFFFFF#000000##FFFFFF
##2F12331.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1C34
Deuteranopia (green-blind)
#161F32
Tritanopia (blue-blind)
#301620
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1233;
/* rgb */ color: rgb(47, 18, 51);
/* oklch */ color: oklch(24.2% 0.071 322.6);
Tailwind
colors: {
  custom: {
    50: '#69516b',
    500: '#2f1233',
    950: '#000000',
  },
}
SCSS
$custom: #2f1233;
$custom-light: #69516b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1233",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 51
  },
  "hsl": {
    "h": 292.727,
    "s": 47.826,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24244,
    "c": 0.07051,
    "h": 322.6
  },
  "luminance": 0.01276
}

Semantic roles & 50–950 ramp

primary
#2F1233
secondary
#3C6B35
accent
#D75061
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2F1233

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

Preview Lab → · Contrast checker → · Palette generator →

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