#2F102A#2F102A

#2F102A is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.064 H 334.0°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#2F102A
RGBrgb(47, 16, 42)
HSLhsl(310, 49%, 12%)
HSVhsv(310, 66%, 18%)
CMYKcmyk(0%, 66%, 10.6%, 81.6%)
CIE-LABlab(10.12, 20.06, -10.38)
CIE-LCHlch(10.12, 22.59, 332.64°)
OKLaboklab(23.35% 0.0579 -0.0282)
OKLCHoklch(23.35% 0.064 334)
XYZxyz(1.7755, 1.1422, 2.3170)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F102A #102F15
analogous
#24102F #2F102A #2F101B
triadic
#2F102A #2A2F10 #102A2F
tetradic
#2F102A #2F2410 #102F15 #101B2F
square
#2F102A #2F2410 #102F15 #101B2F
split-complementary
#2F102A #1B2F10 #102F24
monochromatic
#170814 #170814 #2F102A #5D2053 #8A2F7C

Accessibility & contrast

On white

17.10
#2F102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F102A
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F102A#FFFFFF#000000##FFFFFF
##2F102A1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10192B
Deuteranopia (green-blind)
#191D29
Tritanopia (blue-blind)
#31121B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f102a;
/* rgb */ color: rgb(47, 16, 42);
/* oklch */ color: oklch(23.3% 0.064 334.0);
Tailwind
colors: {
  custom: {
    50: '#695063',
    500: '#2f102a',
    950: '#000000',
  },
}
SCSS
$custom: #2f102a;
$custom-light: #695063;
$custom-dark: #000000;
JSON
{
  "hex": "#2f102a",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 309.677,
    "s": 49.206,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23349,
    "c": 0.06438,
    "h": 334
  },
  "luminance": 0.01142
}

Semantic roles & 50–950 ramp

primary
#2F102A
secondary
#33683B
accent
#D9654F
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060205
muted
#7A7879

Preview Lab

Preview with #2F102A

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

Preview Lab → · Contrast checker → · Palette generator →

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