#2F1641#2F1641

#2F1641 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.081 H 308.6°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#2F1641
RGBrgb(47, 22, 65)
HSLhsl(275, 49%, 17%)
HSVhsv(275, 66%, 25%)
CMYKcmyk(27.7%, 66.2%, 0%, 74.5%)
CIE-LABlab(12.98, 22.03, -22.47)
CIE-LCHlch(12.98, 31.47, 314.43°)
OKLaboklab(25.92% 0.0505 -0.0632)
OKLCHoklch(25.92% 0.081 308.6)
XYZxyz(2.4131, 1.5598, 5.1740)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1641 #284116
analogous
#1A1641 #2F1641 #41163E
triadic
#2F1641 #412F16 #16412F
tetradic
#2F1641 #411A16 #284116 #163E41
square
#2F1641 #411A16 #284116 #163E41
split-complementary
#2F1641 #3E4116 #16411A
monochromatic
#110817 #110817 #2F1641 #50256F #71359C

Accessibility & contrast

On white

16.01
#2F1641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F1641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1641
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1641#FFFFFF#000000##FFFFFF
##2F16411.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062042
Deuteranopia (green-blind)
#102240
Tritanopia (blue-blind)
#2C1E29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1641;
/* rgb */ color: rgb(47, 22, 65);
/* oklch */ color: oklch(25.9% 0.081 308.6);
Tailwind
colors: {
  custom: {
    50: '#695476',
    500: '#2f1641',
    950: '#000000',
  },
}
SCSS
$custom: #2f1641;
$custom-light: #695476;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1641",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 65
  },
  "hsl": {
    "h": 274.884,
    "s": 49.425,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25924,
    "c": 0.08096,
    "h": 308.6
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#2F1641
secondary
#54783A
accent
#D94F89
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F1641

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

Preview Lab → · Contrast checker → · Palette generator →

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