#2F0837#2F0837

#2F0837 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.1% C 0.092 H 320.2°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#2F0837
RGBrgb(47, 8, 55)
HSLhsl(290, 75%, 12%)
HSVhsv(290, 85%, 22%)
CMYKcmyk(14.5%, 85.5%, 0%, 78.4%)
CIE-LABlab(9.43, 27.22, -21.02)
CIE-LCHlch(9.43, 34.39, 322.33°)
OKLaboklab(23.12% 0.0707 -0.0589)
OKLCHoklch(23.12% 0.092 320.2)
XYZxyz(1.9486, 1.0539, 3.7145)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0837 #103708
analogous
#170837 #2F0837 #370828
triadic
#2F0837 #372F08 #08372F
tetradic
#2F0837 #371708 #103708 #082837
square
#2F0837 #371708 #103708 #082837
split-complementary
#2F0837 #283708 #083717
monochromatic
#17041B #17041B #2F0837 #5D106C #8A18A2

Accessibility & contrast

On white

17.34
#2F0837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0837
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0837#FFFFFF#000000##FFFFFF
##2F08371.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#0C1C36
Tritanopia (blue-blind)
#2F111F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f0837;
/* rgb */ color: rgb(47, 8, 55);
/* oklch */ color: oklch(23.1% 0.092 320.2);
Tailwind
colors: {
  custom: {
    50: '#6a4c6e',
    500: '#2f0837',
    950: '#000000',
  },
}
SCSS
$custom: #2f0837;
$custom-light: #6a4c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0837",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 289.787,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23123,
    "c": 0.09201,
    "h": 320.2
  },
  "luminance": 0.01054
}

Semantic roles & 50–950 ramp

primary
#2F0837
secondary
#337625
accent
#F13756
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0837

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

Preview Lab → · Contrast checker → · Palette generator →

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