#2F053A#2F053A

#2F053A is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.100 H 318.1°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#2F053A
RGBrgb(47, 5, 58)
HSLhsl(288, 84%, 12%)
HSVhsv(288, 91%, 23%)
CMYKcmyk(19%, 91.4%, 0%, 77.3%)
CIE-LABlab(9.14, 29.43, -23.65)
CIE-LCHlch(9.14, 37.76, 321.22°)
OKLaboklab(23% 0.0742 -0.0666)
OKLCHoklch(23% 0.1 318.1)
XYZxyz(1.9902, 1.0185, 4.0939)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F053A #103A05
analogous
#14053A #2F053A #3A052B
triadic
#2F053A #3A2F05 #053A2F
tetradic
#2F053A #3A1405 #103A05 #052B3A
square
#2F053A #3A1405 #103A05 #052B3A
split-complementary
#2F053A #2B3A05 #053A14
monochromatic
#17021C #17021C #2F053A #5D0A72 #8A0FAB

Accessibility & contrast

On white

17.45
#2F053A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2F053A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F053A
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F053A#FFFFFF#000000##FFFFFF
##2F053A1.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173B
Deuteranopia (green-blind)
#071B39
Tritanopia (blue-blind)
#2F111F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f053a;
/* rgb */ color: rgb(47, 5, 58);
/* oklch */ color: oklch(23.0% 0.100 318.1);
Tailwind
colors: {
  custom: {
    50: '#6a4b70',
    500: '#2f053a',
    950: '#000000',
  },
}
SCSS
$custom: #2f053a;
$custom-light: #6a4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f053a",
  "rgb": {
    "r": 47,
    "g": 5,
    "b": 58
  },
  "hsl": {
    "h": 287.547,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22996,
    "c": 0.09973,
    "h": 318.1
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#2F053A
secondary
#337B20
accent
#FA2D58
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F053A

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

Preview Lab → · Contrast checker → · Palette generator →

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