#2F1237#2F1237

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

Color values

HEX#2F1237
RGBrgb(47, 18, 55)
HSLhsl(287, 51%, 14%)
HSVhsv(287, 67%, 22%)
CMYKcmyk(14.5%, 67.3%, 0%, 78.4%)
CIE-LABlab(11.37, 21.86, -17.93)
CIE-LCHlch(11.37, 28.27, 320.63°)
OKLaboklab(24.52% 0.0565 -0.05)
OKLCHoklch(24.52% 0.075 318.5)
XYZxyz(2.0781, 1.3129, 3.7576)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1237 #1A3712
analogous
#1D1237 #2F1237 #37122D
triadic
#2F1237 #372F12 #12372F
tetradic
#2F1237 #371D12 #1A3712 #122D37
square
#2F1237 #371D12 #1A3712 #122D37
split-complementary
#2F1237 #2D3712 #12371D
monochromatic
#140817 #140817 #2F1237 #562165 #7E3093

Accessibility & contrast

On white

16.63
#2F1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1237
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1237#FFFFFF#000000##FFFFFF
##2F12371.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091C38
Deuteranopia (green-blind)
#141F36
Tritanopia (blue-blind)
#2F1822
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1237;
/* rgb */ color: rgb(47, 18, 55);
/* oklch */ color: oklch(24.5% 0.075 318.5);
Tailwind
colors: {
  custom: {
    50: '#69516e',
    500: '#2f1237',
    950: '#000000',
  },
}
SCSS
$custom: #2f1237;
$custom-light: #69516e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1237",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 287.027,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24517,
    "c": 0.0754,
    "h": 318.5
  },
  "luminance": 0.01313
}

Semantic roles & 50–950 ramp

primary
#2F1237
secondary
#427035
accent
#DA4E6C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1237

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

Preview Lab → · Contrast checker → · Palette generator →

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