#2F0846#2F0846

#2F0846 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.108 H 308.8°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#2F0846
RGBrgb(47, 8, 70)
HSLhsl(278, 79%, 15%)
HSVhsv(278, 89%, 27%)
CMYKcmyk(32.9%, 88.6%, 0%, 72.5%)
CIE-LABlab(10.71, 30.85, -29.66)
CIE-LCHlch(10.71, 42.79, 316.13°)
OKLaboklab(24.42% 0.0677 -0.0843)
OKLCHoklch(24.42% 0.108 308.8)
XYZxyz(2.3644, 1.2202, 5.9041)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0846 #1F4608
analogous
#100846 #2F0846 #46083E
triadic
#2F0846 #462F08 #08462F
tetradic
#2F0846 #461008 #1F4608 #083E46
square
#2F0846 #461008 #1F4608 #083E46
split-complementary
#2F0846 #3E4608 #084610
monochromatic
#12031B #12031B #2F0846 #540E7D #7915B4

Accessibility & contrast

On white

16.88
#2F0846 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2F0846 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0846
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0846#FFFFFF#000000##FFFFFF
##2F08461.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001D45
Tritanopia (blue-blind)
#2B1827
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0846;
/* rgb */ color: rgb(47, 8, 70);
/* oklch */ color: oklch(24.4% 0.108 308.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d7a',
    500: '#2f0846',
    950: '#000000',
  },
}
SCSS
$custom: #2f0846;
$custom-light: #6b4d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0846",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 70
  },
  "hsl": {
    "h": 277.742,
    "s": 79.487,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24423,
    "c": 0.10809,
    "h": 308.8
  },
  "luminance": 0.0122
}

Semantic roles & 50–950 ramp

primary
#2F0846
secondary
#498426
accent
#F6327B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2F0846

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

Preview Lab → · Contrast checker → · Palette generator →

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