#2F0939#2F0939

#2F0939 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.093 H 318.3°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#2F0939
RGBrgb(47, 9, 57)
HSLhsl(288, 73%, 13%)
HSVhsv(288, 84%, 22%)
CMYKcmyk(17.5%, 84.2%, 0%, 77.6%)
CIE-LABlab(9.76, 27.19, -21.94)
CIE-LCHlch(9.76, 34.94, 321.11°)
OKLaboklab(23.41% 0.0692 -0.0616)
OKLCHoklch(23.41% 0.093 318.3)
XYZxyz(2.0084, 1.0952, 3.9757)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0939 #133909
analogous
#170939 #2F0939 #39092B
triadic
#2F0939 #392F09 #09392F
tetradic
#2F0939 #391709 #133909 #092B39
square
#2F0939 #391709 #133909 #092B39
split-complementary
#2F0939 #2B3909 #093917
monochromatic
#16041A #16041A #2F0939 #5B116E #861AA3

Accessibility & contrast

On white

17.23
#2F0939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2F0939 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0939
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0939#FFFFFF#000000##FFFFFF
##2F09391.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193A
Deuteranopia (green-blind)
#0B1C38
Tritanopia (blue-blind)
#2F1320
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0939;
/* rgb */ color: rgb(47, 9, 57);
/* oklch */ color: oklch(23.4% 0.093 318.3);
Tailwind
colors: {
  custom: {
    50: '#6a4d70',
    500: '#2f0939',
    950: '#000000',
  },
}
SCSS
$custom: #2f0939;
$custom-light: #6a4d70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0939",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 57
  },
  "hsl": {
    "h": 287.5,
    "s": 72.727,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23406,
    "c": 0.09263,
    "h": 318.3
  },
  "luminance": 0.01095
}

Semantic roles & 50–950 ramp

primary
#2F0939
secondary
#377727
accent
#EF385F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0939

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

Preview Lab → · Contrast checker → · Palette generator →

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