#2F0938#2F0938

#2F0938 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.092 H 319.2°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#2F0938
RGBrgb(47, 9, 56)
HSLhsl(289, 72%, 13%)
HSVhsv(289, 84%, 22%)
CMYKcmyk(16.1%, 83.9%, 0%, 78%)
CIE-LABlab(9.68, 26.96, -21.34)
CIE-LCHlch(9.68, 34.38, 321.64°)
OKLaboklab(23.33% 0.0693 -0.0598)
OKLCHoklch(23.33% 0.092 319.2)
XYZxyz(1.9837, 1.0853, 3.8456)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0938 #123809
analogous
#180938 #2F0938 #380929
triadic
#2F0938 #382F09 #09382F
tetradic
#2F0938 #381809 #123809 #092938
square
#2F0938 #381809 #123809 #092938
split-complementary
#2F0938 #293809 #093818
monochromatic
#16041A #16041A #2F0938 #5B116D #881AA1

Accessibility & contrast

On white

17.26
#2F0938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0938
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0938#FFFFFF#000000##FFFFFF
##2F09381.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#0C1C37
Tritanopia (blue-blind)
#2F121F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f0938;
/* rgb */ color: rgb(47, 9, 56);
/* oklch */ color: oklch(23.3% 0.092 319.2);
Tailwind
colors: {
  custom: {
    50: '#6a4c6f',
    500: '#2f0938',
    950: '#000000',
  },
}
SCSS
$custom: #2f0938;
$custom-light: #6a4c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0938",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 288.511,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23326,
    "c": 0.09156,
    "h": 319.2
  },
  "luminance": 0.01085
}

Semantic roles & 50–950 ramp

primary
#2F0938
secondary
#367627
accent
#EF395C
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2F0938

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

Preview Lab → · Contrast checker → · Palette generator →

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