#2F0834#2F0834

#2F0834 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.089 H 322.9°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#2F0834
RGBrgb(47, 8, 52)
HSLhsl(293, 73%, 12%)
HSVhsv(293, 85%, 20%)
CMYKcmyk(9.6%, 84.6%, 0%, 79.6%)
CIE-LABlab(9.21, 26.55, -19.19)
CIE-LCHlch(9.21, 32.76, 324.13°)
OKLaboklab(22.89% 0.0709 -0.0536)
OKLCHoklch(22.89% 0.089 322.9)
XYZxyz(1.8789, 1.0260, 3.3472)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0834 #0D3408
analogous
#190834 #2F0834 #340823
triadic
#2F0834 #342F08 #08342F
tetradic
#2F0834 #341908 #0D3408 #082334
square
#2F0834 #341908 #0D3408 #082334
split-complementary
#2F0834 #233408 #083419
monochromatic
#18041B #18041B #2F0834 #5F1069 #8F189E

Accessibility & contrast

On white

17.42
#2F0834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2F0834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0834
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0834#FFFFFF#000000##FFFFFF
##2F08341.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001735
Deuteranopia (green-blind)
#0F1B33
Tritanopia (blue-blind)
#30101D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0834;
/* rgb */ color: rgb(47, 8, 52);
/* oklch */ color: oklch(22.9% 0.089 322.9);
Tailwind
colors: {
  custom: {
    50: '#694c6c',
    500: '#2f0834',
    950: '#000000',
  },
}
SCSS
$custom: #2f0834;
$custom-light: #694c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0834",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 52
  },
  "hsl": {
    "h": 293.182,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22889,
    "c": 0.08889,
    "h": 322.9
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#2F0834
secondary
#2E7325
accent
#F0384D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2F0834

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

Preview Lab → · Contrast checker → · Palette generator →

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