#2F102D#2F102D

#2F102D is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.5% C 0.068 H 330.0°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#2F102D
RGBrgb(47, 16, 45)
HSLhsl(304, 49%, 12%)
HSVhsv(304, 66%, 18%)
CMYKcmyk(0%, 66%, 4.3%, 81.6%)
CIE-LABlab(10.29, 20.71, -12.34)
CIE-LCHlch(10.29, 24.11, 329.22°)
OKLaboklab(23.53% 0.0585 -0.0338)
OKLCHoklch(23.53% 0.068 330)
XYZxyz(1.8312, 1.1645, 2.6104)
Luminance0.0116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F102D #102F12
analogous
#22102F #2F102D #2F101E
triadic
#2F102D #2D2F10 #102D2F
tetradic
#2F102D #2F2210 #102F12 #101E2F
square
#2F102D #2F2210 #102F12 #101E2F
split-complementary
#2F102D #1E2F10 #102F22
monochromatic
#170816 #170816 #2F102D #5D2059 #8A2F84

Accessibility & contrast

On white

17.03
#2F102D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2F102D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F102D
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F102D#FFFFFF#000000##FFFFFF
##2F102D1.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192E
Deuteranopia (green-blind)
#181E2C
Tritanopia (blue-blind)
#31131C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f102d;
/* rgb */ color: rgb(47, 16, 45);
/* oklch */ color: oklch(23.5% 0.068 330.0);
Tailwind
colors: {
  custom: {
    50: '#695066',
    500: '#2f102d',
    950: '#000000',
  },
}
SCSS
$custom: #2f102d;
$custom-light: #695066;
$custom-dark: #000000;
JSON
{
  "hex": "#2f102d",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 45
  },
  "hsl": {
    "h": 303.871,
    "s": 49.206,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23528,
    "c": 0.06756,
    "h": 330
  },
  "luminance": 0.01164
}

Semantic roles & 50–950 ramp

primary
#2F102D
secondary
#336836
accent
#D9584F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060205
muted
#7A787A

Preview Lab

Preview with #2F102D

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

Preview Lab → · Contrast checker → · Palette generator →

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