#2F1139#2F1139

#2F1139 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.080 H 316.8°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#2F1139
RGBrgb(47, 17, 57)
HSLhsl(285, 54%, 15%)
HSVhsv(285, 70%, 22%)
CMYKcmyk(17.5%, 70.2%, 0%, 77.6%)
CIE-LABlab(11.28, 22.96, -19.51)
CIE-LCHlch(11.28, 30.13, 319.65°)
OKLaboklab(24.5% 0.0581 -0.0546)
OKLCHoklch(24.5% 0.08 316.8)
XYZxyz(2.1111, 1.3007, 4.0100)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1139 #1B3911
analogous
#1B1139 #2F1139 #39112F
triadic
#2F1139 #392F11 #11392F
tetradic
#2F1139 #391B11 #1B3911 #112F39
square
#2F1139 #391B11 #1B3911 #112F39
split-complementary
#2F1139 #2F3911 #11391B
monochromatic
#130718 #130718 #2F1139 #561F68 #7D2D97

Accessibility & contrast

On white

16.66
#2F1139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1139
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1139#FFFFFF#000000##FFFFFF
##2F11391.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061C3A
Deuteranopia (green-blind)
#121F38
Tritanopia (blue-blind)
#2F1823
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1139;
/* rgb */ color: rgb(47, 17, 57);
/* oklch */ color: oklch(24.5% 0.080 316.8);
Tailwind
colors: {
  custom: {
    50: '#69516f',
    500: '#2f1139',
    950: '#000000',
  },
}
SCSS
$custom: #2f1139;
$custom-light: #69516f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1139",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 57
  },
  "hsl": {
    "h": 285,
    "s": 54.054,
    "l": 14.51
  },
  "oklch": {
    "l": 0.245,
    "c": 0.07972,
    "h": 316.8
  },
  "luminance": 0.01301
}

Semantic roles & 50–950 ramp

primary
#2F1139
secondary
#437234
accent
#DD4A6F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1139

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

Preview Lab → · Contrast checker → · Palette generator →

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