#2F0A42#2F0A42

#2F0A42 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.101 H 311.1°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#2F0A42
RGBrgb(47, 10, 66)
HSLhsl(280, 74%, 15%)
HSVhsv(280, 85%, 26%)
CMYKcmyk(28.8%, 84.8%, 0%, 74.1%)
CIE-LABlab(10.67, 28.92, -26.90)
CIE-LCHlch(10.67, 39.50, 317.07°)
OKLaboklab(24.28% 0.0665 -0.0762)
OKLCHoklch(24.28% 0.101 311.1)
XYZxyz(2.2640, 1.2148, 5.2684)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0A42 #1D420A
analogous
#130A42 #2F0A42 #420A39
triadic
#2F0A42 #422F0A #0A422F
tetradic
#2F0A42 #42130A #1D420A #0A3942
square
#2F0A42 #42130A #1D420A #0A3942
split-complementary
#2F0A42 #39420A #0A4213
monochromatic
#13041B #13041B #2F0A42 #551277 #7B1AAC

Accessibility & contrast

On white

16.89
#2F0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0A42
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0A42#FFFFFF#000000##FFFFFF
##2F0A421.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#021D41
Tritanopia (blue-blind)
#2D1725
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2f0a42;
/* rgb */ color: rgb(47, 10, 66);
/* oklch */ color: oklch(24.3% 0.101 311.1);
Tailwind
colors: {
  custom: {
    50: '#6a4e77',
    500: '#2f0a42',
    950: '#000000',
  },
}
SCSS
$custom: #2f0a42;
$custom-light: #6a4e77;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0a42",
  "rgb": {
    "r": 47,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 279.643,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24283,
    "c": 0.10116,
    "h": 311.1
  },
  "luminance": 0.01215
}

Semantic roles & 50–950 ramp

primary
#2F0A42
secondary
#467F29
accent
#F03776
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #2F0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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