#2F1547#2F1547

#2F1547 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.091 H 304.8°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#2F1547
RGBrgb(47, 21, 71)
HSLhsl(271, 54%, 18%)
HSVhsv(271, 70%, 28%)
CMYKcmyk(33.8%, 70.4%, 0%, 72.2%)
CIE-LABlab(13.20, 24.34, -26.31)
CIE-LCHlch(13.20, 35.84, 312.77°)
OKLaboklab(26.23% 0.0519 -0.0745)
OKLCHoklch(26.23% 0.091 304.8)
XYZxyz(2.5775, 1.5956, 6.1322)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1547 #2D4715
analogous
#161547 #2F1547 #471546
triadic
#2F1547 #472F15 #15472F
tetradic
#2F1547 #471615 #2D4715 #154647
square
#2F1547 #471615 #2D4715 #154647
split-complementary
#2F1547 #464715 #154716
monochromatic
#100718 #100718 #2F1547 #4E2376 #6E31A5

Accessibility & contrast

On white

15.92
#2F1547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1547
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1547#FFFFFF#000000##FFFFFF
##2F15471.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#082246
Tritanopia (blue-blind)
#2B1F2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1547;
/* rgb */ color: rgb(47, 21, 71);
/* oklch */ color: oklch(26.2% 0.091 304.8);
Tailwind
colors: {
  custom: {
    50: '#6a547a',
    500: '#2f1547',
    950: '#000000',
  },
}
SCSS
$custom: #2f1547;
$custom-light: #6a547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1547",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 71
  },
  "hsl": {
    "h": 271.2,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26228,
    "c": 0.09079,
    "h": 304.8
  },
  "luminance": 0.01596
}

Semantic roles & 50–950 ramp

primary
#2F1547
secondary
#5B7F39
accent
#DE4A91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #2F1547

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

Preview Lab → · Contrast checker → · Palette generator →

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