#2F0940#2F0940

#2F0940 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.100 H 312.8°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#2F0940
RGBrgb(47, 9, 64)
HSLhsl(281, 75%, 14%)
HSVhsv(281, 86%, 25%)
CMYKcmyk(26.6%, 85.9%, 0%, 74.9%)
CIE-LABlab(10.33, 28.88, -26.02)
CIE-LCHlch(10.33, 38.88, 317.98°)
OKLaboklab(23.99% 0.0681 -0.0736)
OKLCHoklch(23.99% 0.1 312.8)
XYZxyz(2.1952, 1.1699, 4.9597)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0940 #1A4009
analogous
#140940 #2F0940 #400936
triadic
#2F0940 #402F09 #09402F
tetradic
#2F0940 #401409 #1A4009 #093640
square
#2F0940 #401409 #1A4009 #093640
split-complementary
#2F0940 #364009 #094014
monochromatic
#14041B #14041B #2F0940 #561176 #7E18AB

Accessibility & contrast

On white

17.02
#2F0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0940
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0940#FFFFFF#000000##FFFFFF
##2F09401.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#2D1624
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2f0940;
/* rgb */ color: rgb(47, 9, 64);
/* oklch */ color: oklch(24.0% 0.100 312.8);
Tailwind
colors: {
  custom: {
    50: '#6a4d75',
    500: '#2f0940',
    950: '#000000',
  },
}
SCSS
$custom: #2f0940;
$custom-light: #6a4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0940",
  "rgb": {
    "r": 47,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 281.455,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23994,
    "c": 0.10024,
    "h": 312.8
  },
  "luminance": 0.0117
}

Semantic roles & 50–950 ramp

primary
#2F0940
secondary
#427E27
accent
#F23670
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F0940

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

Preview Lab → · Contrast checker → · Palette generator →

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