#2F0B42#2F0B42

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

Color values

HEX#2F0B42
RGBrgb(47, 11, 66)
HSLhsl(279, 71%, 15%)
HSVhsv(279, 83%, 26%)
CMYKcmyk(28.8%, 83.3%, 0%, 74.1%)
CIE-LABlab(10.83, 28.46, -26.64)
CIE-LCHlch(10.83, 38.98, 316.89°)
OKLaboklab(24.4% 0.0654 -0.0754)
OKLCHoklch(24.4% 0.1 310.9)
XYZxyz(2.2751, 1.2371, 5.2721)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0B42 #1E420B
analogous
#140B42 #2F0B42 #420B39
triadic
#2F0B42 #422F0B #0B422F
tetradic
#2F0B42 #42140B #1E420B #0B3942
square
#2F0B42 #42140B #1E420B #0B3942
split-complementary
#2F0B42 #39420B #0B4214
monochromatic
#13041A #13041A #2F0B42 #541476 #7A1CAB

Accessibility & contrast

On white

16.84
#2F0B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2F0B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0B42
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0B42#FFFFFF#000000##FFFFFF
##2F0B421.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#031E41
Tritanopia (blue-blind)
#2C1826
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0b42;
/* rgb */ color: rgb(47, 11, 66);
/* oklch */ color: oklch(24.4% 0.100 310.9);
Tailwind
colors: {
  custom: {
    50: '#6a4e77',
    500: '#2f0b42',
    950: '#000000',
  },
}
SCSS
$custom: #2f0b42;
$custom-light: #6a4e77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0b42",
  "rgb": {
    "r": 47,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 279.273,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24398,
    "c": 0.09984,
    "h": 310.9
  },
  "luminance": 0.01237
}

Semantic roles & 50–950 ramp

primary
#2F0B42
secondary
#477F2A
accent
#EE3A78
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0B42

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

Preview Lab → · Contrast checker → · Palette generator →

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