#2F0937#2F0937

#2F0937 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.090 H 320.1°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#2F0937
RGBrgb(47, 9, 55)
HSLhsl(290, 72%, 13%)
HSVhsv(290, 84%, 22%)
CMYKcmyk(14.5%, 83.6%, 0%, 78.4%)
CIE-LABlab(9.61, 26.73, -20.74)
CIE-LCHlch(9.61, 33.83, 322.19°)
OKLaboklab(23.25% 0.0694 -0.0581)
OKLCHoklch(23.25% 0.09 320.1)
XYZxyz(1.9595, 1.0756, 3.7181)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0937 #113709
analogous
#180937 #2F0937 #370928
triadic
#2F0937 #372F09 #09372F
tetradic
#2F0937 #371809 #113709 #092837
square
#2F0937 #371809 #113709 #092837
split-complementary
#2F0937 #283709 #093718
monochromatic
#16041A #16041A #2F0937 #5C126C #891AA0

Accessibility & contrast

On white

17.28
#2F0937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0937
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0937#FFFFFF#000000##FFFFFF
##2F09371.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f0937;
/* rgb */ color: rgb(47, 9, 55);
/* oklch */ color: oklch(23.2% 0.090 320.1);
Tailwind
colors: {
  custom: {
    50: '#6a4c6e',
    500: '#2f0937',
    950: '#000000',
  },
}
SCSS
$custom: #2f0937;
$custom-light: #6a4c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0937",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 289.565,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23247,
    "c": 0.09049,
    "h": 320.1
  },
  "luminance": 0.01076
}

Semantic roles & 50–950 ramp

primary
#2F0937
secondary
#347527
accent
#EF3959
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2F0937

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

Preview Lab → · Contrast checker → · Palette generator →

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