#2F1337#2F1337

#2F1337 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.073 H 318.2°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#2F1337
RGBrgb(47, 19, 55)
HSLhsl(287, 49%, 15%)
HSVhsv(287, 65%, 22%)
CMYKcmyk(14.5%, 65.5%, 0%, 78.4%)
CIE-LABlab(11.59, 21.25, -17.57)
CIE-LCHlch(11.59, 27.57, 320.41°)
OKLaboklab(24.68% 0.0548 -0.0489)
OKLCHoklch(24.68% 0.073 318.2)
XYZxyz(2.0947, 1.3460, 3.7632)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1337 #1B3713
analogous
#1D1337 #2F1337 #37132D
triadic
#2F1337 #372F13 #13372F
tetradic
#2F1337 #371D13 #1B3713 #132D37
square
#2F1337 #371D13 #1B3713 #132D37
split-complementary
#2F1337 #2D3713 #13371D
monochromatic
#130817 #130817 #2F1337 #562364 #7D3292

Accessibility & contrast

On white

16.55
#2F1337 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F1337 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1337
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1337#FFFFFF#000000##FFFFFF
##2F13371.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1D38
Deuteranopia (green-blind)
#152036
Tritanopia (blue-blind)
#2F1922
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1337;
/* rgb */ color: rgb(47, 19, 55);
/* oklch */ color: oklch(24.7% 0.073 318.2);
Tailwind
colors: {
  custom: {
    50: '#69526e',
    500: '#2f1337',
    950: '#000000',
  },
}
SCSS
$custom: #2f1337;
$custom-light: #69526e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1337",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 55
  },
  "hsl": {
    "h": 286.667,
    "s": 48.649,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24684,
    "c": 0.07349,
    "h": 318.2
  },
  "luminance": 0.01346
}

Semantic roles & 50–950 ramp

primary
#2F1337
secondary
#436F37
accent
#D8506E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1337

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

Preview Lab → · Contrast checker → · Palette generator →

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