#2F073C#2F073C

#2F073C is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.099 H 316.2°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#2F073C
RGBrgb(47, 7, 60)
HSLhsl(285, 79%, 13%)
HSVhsv(285, 88%, 24%)
CMYKcmyk(21.7%, 88.3%, 0%, 76.5%)
CIE-LABlab(9.66, 28.88, -24.25)
CIE-LCHlch(9.66, 37.71, 319.98°)
OKLaboklab(23.41% 0.0712 -0.0684)
OKLCHoklch(23.41% 0.099 316.2)
XYZxyz(2.0638, 1.0826, 4.3743)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F073C #143C07
analogous
#14073C #2F073C #3C072E
triadic
#2F073C #3C2F07 #073C2F
tetradic
#2F073C #3C1407 #143C07 #072E3C
square
#2F073C #3C1407 #143C07 #072E3C
split-complementary
#2F073C #2E3C07 #073C14
monochromatic
#15031B #15031B #2F073C #5A0D73 #8514AA

Accessibility & contrast

On white

17.26
#2F073C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2F073C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F073C
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F073C#FFFFFF#000000##FFFFFF
##2F073C1.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183D
Deuteranopia (green-blind)
#061C3B
Tritanopia (blue-blind)
#2E1321
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f073c;
/* rgb */ color: rgb(47, 7, 60);
/* oklch */ color: oklch(23.4% 0.099 316.2);
Tailwind
colors: {
  custom: {
    50: '#6a4c72',
    500: '#2f073c',
    950: '#000000',
  },
}
SCSS
$custom: #2f073c;
$custom-light: #6a4c72;
$custom-dark: #000000;
JSON
{
  "hex": "#2f073c",
  "rgb": {
    "r": 47,
    "g": 7,
    "b": 60
  },
  "hsl": {
    "h": 285.283,
    "s": 79.104,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23413,
    "c": 0.09875,
    "h": 316.2
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#2F073C
secondary
#397B23
accent
#F63262
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F073C

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

Preview Lab → · Contrast checker → · Palette generator →

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