#2F1338#2F1338

#2F1338 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.8% C 0.075 H 317.3°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#2F1338
RGBrgb(47, 19, 56)
HSLhsl(285, 49%, 15%)
HSVhsv(285, 66%, 22%)
CMYKcmyk(16.1%, 66.1%, 0%, 78%)
CIE-LABlab(11.66, 21.50, -18.19)
CIE-LCHlch(11.66, 28.16, 319.77°)
OKLaboklab(24.75% 0.0549 -0.0507)
OKLCHoklch(24.75% 0.075 317.3)
XYZxyz(2.1189, 1.3557, 3.8907)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1338 #1C3813
analogous
#1D1338 #2F1338 #38132F
triadic
#2F1338 #382F13 #13382F
tetradic
#2F1338 #381D13 #1C3813 #132F38
square
#2F1338 #381D13 #1C3813 #132F38
split-complementary
#2F1338 #2F3813 #13381D
monochromatic
#130817 #130817 #2F1338 #552366 #7C3293

Accessibility & contrast

On white

16.52
#2F1338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1338
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1338#FFFFFF#000000##FFFFFF
##2F13381.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1D39
Deuteranopia (green-blind)
#142037
Tritanopia (blue-blind)
#2F1923
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f1338;
/* rgb */ color: rgb(47, 19, 56);
/* oklch */ color: oklch(24.8% 0.075 317.3);
Tailwind
colors: {
  custom: {
    50: '#69526f',
    500: '#2f1338',
    950: '#000000',
  },
}
SCSS
$custom: #2f1338;
$custom-light: #69526f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1338",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 285.405,
    "s": 49.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24754,
    "c": 0.07476,
    "h": 317.3
  },
  "luminance": 0.01356
}

Semantic roles & 50–950 ramp

primary
#2F1338
secondary
#457037
accent
#D94F70
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1338

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

Preview Lab → · Contrast checker → · Palette generator →

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