#2F1137#2F1137

#2F1137 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.077 H 318.7°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#2F1137
RGBrgb(47, 17, 55)
HSLhsl(287, 53%, 14%)
HSVhsv(287, 69%, 22%)
CMYKcmyk(14.5%, 69.1%, 0%, 78.4%)
CIE-LABlab(11.14, 22.46, -18.29)
CIE-LCHlch(11.14, 28.96, 320.85°)
OKLaboklab(24.36% 0.0581 -0.051)
OKLCHoklch(24.36% 0.077 318.7)
XYZxyz(2.0622, 1.2812, 3.7523)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1137 #193711
analogous
#1C1137 #2F1137 #37112C
triadic
#2F1137 #372F11 #11372F
tetradic
#2F1137 #371C11 #193711 #112C37
square
#2F1137 #371C11 #193711 #112C37
split-complementary
#2F1137 #2C3711 #11371C
monochromatic
#140717 #140717 #2F1137 #571F66 #7F2E95

Accessibility & contrast

On white

16.72
#2F1137 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1137
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1137#FFFFFF#000000##FFFFFF
##2F11371.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C38
Deuteranopia (green-blind)
#131F36
Tritanopia (blue-blind)
#2F1722
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1137;
/* rgb */ color: rgb(47, 17, 55);
/* oklch */ color: oklch(24.4% 0.077 318.7);
Tailwind
colors: {
  custom: {
    50: '#69516e',
    500: '#2f1137',
    950: '#000000',
  },
}
SCSS
$custom: #2f1137;
$custom-light: #69516e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1137",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 55
  },
  "hsl": {
    "h": 287.368,
    "s": 52.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24355,
    "c": 0.07727,
    "h": 318.7
  },
  "luminance": 0.01281
}

Semantic roles & 50–950 ramp

primary
#2F1137
secondary
#407034
accent
#DC4C6A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1137

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

Preview Lab → · Contrast checker → · Palette generator →

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