#2F0128#2F0128

#2F0128 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.091 H 335.4°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#2F0128
RGBrgb(47, 1, 40)
HSLhsl(309, 96%, 9%)
HSVhsv(309, 98%, 18%)
CMYKcmyk(0%, 97.9%, 14.9%, 81.6%)
CIE-LABlab(7.04, 27.92, -13.70)
CIE-LCHlch(7.04, 31.10, 333.87°)
OKLaboklab(21.05% 0.0824 -0.0377)
OKLCHoklch(21.05% 0.091 335.4)
XYZxyz(1.5662, 0.7794, 2.0750)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0128 #012F08
analogous
#1F012F #2F0128 #2F0111
triadic
#2F0128 #282F01 #01282F
tetradic
#2F0128 #2F1F01 #012F08 #01112F
square
#2F0128 #2F1F01 #012F08 #01112F
split-complementary
#2F0128 #112F01 #012F1F
monochromatic
#1E011A #1E011A #2F0128 #6B025B #A7048E

Accessibility & contrast

On white

18.17
#2F0128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F0128
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0128#FFFFFF#000000##FFFFFF
##2F01281.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011129
Deuteranopia (green-blind)
#121827
Tritanopia (blue-blind)
#320414
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2f0128;
/* rgb */ color: rgb(47, 1, 40);
/* oklch */ color: oklch(21.0% 0.091 335.4);
Tailwind
colors: {
  custom: {
    50: '#6a4762',
    500: '#2f0128',
    950: '#000000',
  },
}
SCSS
$custom: #2f0128;
$custom-light: #6a4762;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0128",
  "rgb": {
    "r": 47,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 309.13,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.21045,
    "c": 0.09063,
    "h": 335.4
  },
  "luminance": 0.00779
}

Semantic roles & 50–950 ramp

primary
#2F0128
secondary
#177525
accent
#FF4929
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#070005
muted
#7A7779

Preview Lab

Preview with #2F0128

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

Preview Lab → · Contrast checker → · Palette generator →

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