#2F0F42#2F0F42

#2F0F42 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.094 H 310.0°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#2F0F42
RGBrgb(47, 15, 66)
HSLhsl(278, 63%, 16%)
HSVhsv(278, 77%, 26%)
CMYKcmyk(28.8%, 77.3%, 0%, 74.1%)
CIE-LABlab(11.55, 26.43, -25.48)
CIE-LCHlch(11.55, 36.71, 316.05°)
OKLaboklab(24.91% 0.0605 -0.072)
OKLCHoklch(24.91% 0.094 310)
XYZxyz(2.3263, 1.3394, 5.2892)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F42 #22420F
analogous
#150F42 #2F0F42 #420F3B
triadic
#2F0F42 #422F0F #0F422F
tetradic
#2F0F42 #42150F #22420F #0F3B42
square
#2F0F42 #42150F #22420F #0F3B42
split-complementary
#2F0F42 #3B420F #0F4215
monochromatic
#120619 #120619 #2F0F42 #531A74 #7626A6

Accessibility & contrast

On white

16.56
#2F0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0F42
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F42#FFFFFF#000000##FFFFFF
##2F0F421.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#2C1A27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f0f42;
/* rgb */ color: rgb(47, 15, 66);
/* oklch */ color: oklch(24.9% 0.094 310.0);
Tailwind
colors: {
  custom: {
    50: '#6a5077',
    500: '#2f0f42',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f42;
$custom-light: #6a5077;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f42",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 277.647,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2491,
    "c": 0.09409,
    "h": 310
  },
  "luminance": 0.01339
}

Semantic roles & 50–950 ramp

primary
#2F0F42
secondary
#4D7C30
accent
#E6427F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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