#2F1447#2F1447

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

Color values

HEX#2F1447
RGBrgb(47, 20, 71)
HSLhsl(272, 56%, 18%)
HSVhsv(272, 72%, 28%)
CMYKcmyk(33.8%, 71.8%, 0%, 72.2%)
CIE-LABlab(12.98, 24.95, -26.67)
CIE-LCHlch(12.98, 36.52, 313.09°)
OKLaboklab(26.07% 0.0533 -0.0756)
OKLCHoklch(26.07% 0.092 305.2)
XYZxyz(2.5595, 1.5596, 6.1262)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1447 #2C4714
analogous
#161447 #2F1447 #471445
triadic
#2F1447 #472F14 #14472F
tetradic
#2F1447 #471614 #2C4714 #144547
square
#2F1447 #471614 #2C4714 #144547
split-complementary
#2F1447 #454714 #144716
monochromatic
#100718 #100718 #2F1447 #4F2177 #6E2FA6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1447#FFFFFF#000000##FFFFFF
##2F14471.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)
#002149
Deuteranopia (green-blind)
#072246
Tritanopia (blue-blind)
#2B1F2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1447;
/* rgb */ color: rgb(47, 20, 71);
/* oklch */ color: oklch(26.1% 0.092 305.2);
Tailwind
colors: {
  custom: {
    50: '#6a537b',
    500: '#2f1447',
    950: '#000000',
  },
}
SCSS
$custom: #2f1447;
$custom-light: #6a537b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1447",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 71
  },
  "hsl": {
    "h": 271.765,
    "s": 56.044,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26068,
    "c": 0.09244,
    "h": 305.2
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#2F1447
secondary
#597F38
accent
#DF488F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1447

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

Preview Lab → · Contrast checker → · Palette generator →

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