#2F0F41#2F0F41

#2F0F41 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.093 H 310.8°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#2F0F41
RGBrgb(47, 15, 65)
HSLhsl(278, 63%, 16%)
HSVhsv(278, 77%, 25%)
CMYKcmyk(27.7%, 76.9%, 0%, 74.5%)
CIE-LABlab(11.47, 26.16, -24.90)
CIE-LCHlch(11.47, 36.12, 316.42°)
OKLaboklab(24.83% 0.0607 -0.0703)
OKLCHoklch(24.83% 0.093 310.8)
XYZxyz(2.2971, 1.3277, 5.1353)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F41 #21410F
analogous
#160F41 #2F0F41 #410F3A
triadic
#2F0F41 #412F0F #0F412F
tetradic
#2F0F41 #41160F #21410F #0F3A41
square
#2F0F41 #41160F #21410F #0F3A41
split-complementary
#2F0F41 #3A410F #0F4116
monochromatic
#120619 #120619 #2F0F41 #531A73 #7726A4

Accessibility & contrast

On white

16.59
#2F0F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F0F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F41
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F41#FFFFFF#000000##FFFFFF
##2F0F411.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#081F40
Tritanopia (blue-blind)
#2D1926
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f0f41;
/* rgb */ color: rgb(47, 15, 65);
/* oklch */ color: oklch(24.8% 0.093 310.8);
Tailwind
colors: {
  custom: {
    50: '#6a5076',
    500: '#2f0f41',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f41;
$custom-light: #6a5076;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f41",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 278.4,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24827,
    "c": 0.09288,
    "h": 310.8
  },
  "luminance": 0.01328
}

Semantic roles & 50–950 ramp

primary
#2F0F41
secondary
#4B7B30
accent
#E6427D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0F41

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

Preview Lab → · Contrast checker → · Palette generator →

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