#2F1238#2F1238

#2F1238 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.077 H 317.5°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#2F1238
RGBrgb(47, 18, 56)
HSLhsl(286, 51%, 15%)
HSVhsv(286, 68%, 22%)
CMYKcmyk(16.1%, 67.9%, 0%, 78%)
CIE-LABlab(11.43, 22.11, -18.55)
CIE-LCHlch(11.43, 28.86, 320.01°)
OKLaboklab(24.59% 0.0565 -0.0518)
OKLCHoklch(24.59% 0.077 317.5)
XYZxyz(2.1023, 1.3226, 3.8852)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1238 #1B3812
analogous
#1C1238 #2F1238 #38122E
triadic
#2F1238 #382F12 #12382F
tetradic
#2F1238 #381C12 #1B3812 #122E38
square
#2F1238 #381C12 #1B3812 #122E38
split-complementary
#2F1238 #2E3812 #12381C
monochromatic
#130717 #130717 #2F1238 #562166 #7D3095

Accessibility & contrast

On white

16.61
#2F1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1238
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1238#FFFFFF#000000##FFFFFF
##2F12381.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091C39
Deuteranopia (green-blind)
#131F37
Tritanopia (blue-blind)
#2F1822
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1238;
/* rgb */ color: rgb(47, 18, 56);
/* oklch */ color: oklch(24.6% 0.077 317.5);
Tailwind
colors: {
  custom: {
    50: '#69516f',
    500: '#2f1238',
    950: '#000000',
  },
}
SCSS
$custom: #2f1238;
$custom-light: #69516f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1238",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 285.789,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24588,
    "c": 0.07665,
    "h": 317.5
  },
  "luminance": 0.01322
}

Semantic roles & 50–950 ramp

primary
#2F1238
secondary
#437135
accent
#DB4D6F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1238

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

Preview Lab → · Contrast checker → · Palette generator →

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