#2F1239#2F1239

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

Color values

HEX#2F1239
RGBrgb(47, 18, 57)
HSLhsl(285, 52%, 15%)
HSVhsv(285, 68%, 22%)
CMYKcmyk(17.5%, 68.4%, 0%, 77.6%)
CIE-LABlab(11.50, 22.37, -19.16)
CIE-LCHlch(11.50, 29.45, 319.42°)
OKLaboklab(24.66% 0.0566 -0.0535)
OKLCHoklch(24.66% 0.078 316.6)
XYZxyz(2.1270, 1.3324, 4.0152)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1239 #1C3912
analogous
#1B1239 #2F1239 #391230
triadic
#2F1239 #392F12 #12392F
tetradic
#2F1239 #391B12 #1C3912 #123039
square
#2F1239 #391B12 #1C3912 #123039
split-complementary
#2F1239 #303912 #12391B
monochromatic
#130717 #130717 #2F1239 #552168 #7C2F96

Accessibility & contrast

On white

16.58
#2F1239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1239
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1239#FFFFFF#000000##FFFFFF
##2F12391.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081D3A
Deuteranopia (green-blind)
#131F38
Tritanopia (blue-blind)
#2F1923
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1239;
/* rgb */ color: rgb(47, 18, 57);
/* oklch */ color: oklch(24.7% 0.078 316.6);
Tailwind
colors: {
  custom: {
    50: '#69526f',
    500: '#2f1239',
    950: '#000000',
  },
}
SCSS
$custom: #2f1239;
$custom-light: #69526f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1239",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 284.615,
    "s": 52,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2466,
    "c": 0.07789,
    "h": 316.6
  },
  "luminance": 0.01332
}

Semantic roles & 50–950 ramp

primary
#2F1239
secondary
#457235
accent
#DB4C71
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1239

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

Preview Lab → · Contrast checker → · Palette generator →

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