#2F1138#2F1138

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

Color values

HEX#2F1138
RGBrgb(47, 17, 56)
HSLhsl(286, 53%, 14%)
HSVhsv(286, 70%, 22%)
CMYKcmyk(16.1%, 69.6%, 0%, 78%)
CIE-LABlab(11.21, 22.71, -18.90)
CIE-LCHlch(11.21, 29.54, 320.23°)
OKLaboklab(24.43% 0.0581 -0.0528)
OKLCHoklch(24.43% 0.078 317.7)
XYZxyz(2.0864, 1.2908, 3.8799)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1138 #1A3811
analogous
#1C1138 #2F1138 #38112E
triadic
#2F1138 #382F11 #11382F
tetradic
#2F1138 #381C11 #1A3811 #112E38
square
#2F1138 #381C11 #1A3811 #112E38
split-complementary
#2F1138 #2E3811 #11381C
monochromatic
#140717 #140717 #2F1138 #561F67 #7E2E96

Accessibility & contrast

On white

16.69
#2F1138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1138
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1138#FFFFFF#000000##FFFFFF
##2F11381.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C39
Deuteranopia (green-blind)
#121F37
Tritanopia (blue-blind)
#2F1722
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1138;
/* rgb */ color: rgb(47, 17, 56);
/* oklch */ color: oklch(24.4% 0.078 317.7);
Tailwind
colors: {
  custom: {
    50: '#69516f',
    500: '#2f1138',
    950: '#000000',
  },
}
SCSS
$custom: #2f1138;
$custom-light: #69516f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1138",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 286.154,
    "s": 53.425,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24427,
    "c": 0.07849,
    "h": 317.7
  },
  "luminance": 0.01291
}

Semantic roles & 50–950 ramp

primary
#2F1138
secondary
#427134
accent
#DD4B6D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1138

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

Preview Lab → · Contrast checker → · Palette generator →

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