#2F0239#2F0239

#2F0239 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.5% C 0.104 H 319.4°. Best body text is #FFFFFF at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#2F0239
RGBrgb(47, 2, 57)
HSLhsl(289, 93%, 12%)
HSVhsv(289, 96%, 22%)
CMYKcmyk(17.5%, 96.5%, 0%, 77.6%)
CIE-LABlab(8.51, 30.82, -23.95)
CIE-LCHlch(8.51, 39.03, 322.15°)
OKLaboklab(22.53% 0.0786 -0.0674)
OKLCHoklch(22.53% 0.104 319.4)
XYZxyz(1.9324, 0.9433, 3.9504)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0239 #0C3902
analogous
#140239 #2F0239 #390228
triadic
#2F0239 #392F02 #02392F
tetradic
#2F0239 #391402 #0C3902 #022839
square
#2F0239 #391402 #0C3902 #022839
split-complementary
#2F0239 #283902 #023914
monochromatic
#18011E #18011E #2F0239 #600474 #9106AF

Accessibility & contrast

On white

17.67
#2F0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2F0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0239
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0239#FFFFFF#000000##FFFFFF
##2F02391.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#051A38
Tritanopia (blue-blind)
#2F0E1E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2f0239;
/* rgb */ color: rgb(47, 2, 57);
/* oklch */ color: oklch(22.5% 0.104 319.4);
Tailwind
colors: {
  custom: {
    50: '#6a4970',
    500: '#2f0239',
    950: '#000000',
  },
}
SCSS
$custom: #2f0239;
$custom-light: #6a4970;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0239",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 289.091,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22525,
    "c": 0.10359,
    "h": 319.4
  },
  "luminance": 0.00943
}

Semantic roles & 50–950 ramp

primary
#2F0239
secondary
#2C7D1A
accent
#FF2950
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F0239

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

Preview Lab → · Contrast checker → · Palette generator →

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