#2F012A#2F012A

#2F012A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.092 H 333.3°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#2F012A
RGBrgb(47, 1, 42)
HSLhsl(307, 96%, 9%)
HSVhsv(307, 98%, 18%)
CMYKcmyk(0%, 97.9%, 10.6%, 81.6%)
CIE-LABlab(7.17, 28.32, -15.01)
CIE-LCHlch(7.17, 32.05, 332.07°)
OKLaboklab(21.19% 0.0824 -0.0415)
OKLCHoklch(21.19% 0.092 333.3)
XYZxyz(1.6011, 0.7934, 2.2589)
Luminance0.0079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F012A #012F06
analogous
#1D012F #2F012A #2F0113
triadic
#2F012A #2A2F01 #012A2F
tetradic
#2F012A #2F1D01 #012F06 #01132F
square
#2F012A #2F1D01 #012F06 #01132F
split-complementary
#2F012A #132F01 #012F1D
monochromatic
#1E011B #1E011B #2F012A #6B0260 #A70495

Accessibility & contrast

On white

18.13
#2F012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2F012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F012A
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F012A#FFFFFF#000000##FFFFFF
##2F012A1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#111829
Tritanopia (blue-blind)
#320515
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2f012a;
/* rgb */ color: rgb(47, 1, 42);
/* oklch */ color: oklch(21.2% 0.092 333.3);
Tailwind
colors: {
  custom: {
    50: '#6a4763',
    500: '#2f012a',
    950: '#000000',
  },
}
SCSS
$custom: #2f012a;
$custom-light: #6a4763;
$custom-dark: #000000;
JSON
{
  "hex": "#2f012a",
  "rgb": {
    "r": 47,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 306.522,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.21185,
    "c": 0.09226,
    "h": 333.3
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#2F012A
secondary
#177521
accent
#FF4029
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#070005
muted
#7A7779

Preview Lab

Preview with #2F012A

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

Preview Lab → · Contrast checker → · Palette generator →

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