#2F1235#2F1235

#2F1235 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.073 H 320.5°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#2F1235
RGBrgb(47, 18, 53)
HSLhsl(290, 49%, 14%)
HSVhsv(290, 66%, 21%)
CMYKcmyk(11.3%, 66%, 0%, 79.2%)
CIE-LABlab(11.23, 21.36, -16.70)
CIE-LCHlch(11.23, 27.11, 321.99°)
OKLaboklab(24.38% 0.0563 -0.0464)
OKLCHoklch(24.38% 0.073 320.5)
XYZxyz(2.0311, 1.2941, 3.5103)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1235 #183512
analogous
#1E1235 #2F1235 #35122A
triadic
#2F1235 #352F12 #12352F
tetradic
#2F1235 #351E12 #183512 #122A35
square
#2F1235 #351E12 #183512 #122A35
split-complementary
#2F1235 #2A3512 #12351E
monochromatic
#140817 #140817 #2F1235 #582263 #803190

Accessibility & contrast

On white

16.68
#2F1235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1235
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1235#FFFFFF#000000##FFFFFF
##2F12351.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1C36
Deuteranopia (green-blind)
#151F34
Tritanopia (blue-blind)
#2F1721
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f1235;
/* rgb */ color: rgb(47, 18, 53);
/* oklch */ color: oklch(24.4% 0.073 320.5);
Tailwind
colors: {
  custom: {
    50: '#69516c',
    500: '#2f1235',
    950: '#000000',
  },
}
SCSS
$custom: #2f1235;
$custom-light: #69516c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1235",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 289.714,
    "s": 49.296,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24379,
    "c": 0.07293,
    "h": 320.5
  },
  "luminance": 0.01294
}

Semantic roles & 50–950 ramp

primary
#2F1235
secondary
#3F6D35
accent
#D94F67
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F1235

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

Preview Lab → · Contrast checker → · Palette generator →

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