#2F063A#2F063A

#2F063A is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.1% C 0.098 H 318.0°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#2F063A
RGBrgb(47, 6, 58)
HSLhsl(287, 81%, 13%)
HSVhsv(287, 90%, 23%)
CMYKcmyk(19%, 89.7%, 0%, 77.3%)
CIE-LABlab(9.32, 28.92, -23.36)
CIE-LCHlch(9.32, 37.17, 321.06°)
OKLaboklab(23.12% 0.0729 -0.0658)
OKLCHoklch(23.12% 0.098 318)
XYZxyz(2.0010, 1.0402, 4.0975)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F063A #113A06
analogous
#15063A #2F063A #3A062B
triadic
#2F063A #3A2F06 #063A2F
tetradic
#2F063A #3A1506 #113A06 #062B3A
square
#2F063A #3A1506 #113A06 #062B3A
split-complementary
#2F063A #2B3A06 #063A15
monochromatic
#16031C #16031C #2F063A #5C0C71 #8911A9

Accessibility & contrast

On white

17.38
#2F063A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2F063A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F063A
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F063A#FFFFFF#000000##FFFFFF
##2F063A1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#081B39
Tritanopia (blue-blind)
#2F1120
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f063a;
/* rgb */ color: rgb(47, 6, 58);
/* oklch */ color: oklch(23.1% 0.098 318.0);
Tailwind
colors: {
  custom: {
    50: '#6a4b70',
    500: '#2f063a',
    950: '#000000',
  },
}
SCSS
$custom: #2f063a;
$custom-light: #6a4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f063a",
  "rgb": {
    "r": 47,
    "g": 6,
    "b": 58
  },
  "hsl": {
    "h": 287.308,
    "s": 81.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23121,
    "c": 0.09818,
    "h": 318
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#2F063A
secondary
#347A22
accent
#F8305A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2F063A

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

Preview Lab → · Contrast checker → · Palette generator →

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