#2F1247#2F1247

#2F1247 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.096 H 305.8°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2F1247
RGBrgb(47, 18, 71)
HSLhsl(273, 60%, 17%)
HSVhsv(273, 75%, 28%)
CMYKcmyk(33.8%, 74.6%, 0%, 72.2%)
CIE-LABlab(12.56, 26.12, -27.35)
CIE-LCHlch(12.56, 37.82, 313.67°)
OKLaboklab(25.76% 0.056 -0.0776)
OKLCHoklch(25.76% 0.096 305.8)
XYZxyz(2.5257, 1.4919, 6.1149)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1247 #2A4712
analogous
#141247 #2F1247 #471245
triadic
#2F1247 #472F12 #12472F
tetradic
#2F1247 #471412 #2A4712 #124547
square
#2F1247 #471412 #2A4712 #124547
split-complementary
#2F1247 #454712 #124714
monochromatic
#100618 #100618 #2F1247 #4F1E78 #702BA9

Accessibility & contrast

On white

16.17
#2F1247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F1247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1247
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1247#FFFFFF#000000##FFFFFF
##2F12471.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#042146
Tritanopia (blue-blind)
#2B1E2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1247;
/* rgb */ color: rgb(47, 18, 71);
/* oklch */ color: oklch(25.8% 0.096 305.8);
Tailwind
colors: {
  custom: {
    50: '#6a527b',
    500: '#2f1247',
    950: '#000000',
  },
}
SCSS
$custom: #2f1247;
$custom-light: #6a527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1247",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 272.83,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25762,
    "c": 0.09565,
    "h": 305.8
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#2F1247
secondary
#578035
accent
#E3458C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1247

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

Preview Lab → · Contrast checker → · Palette generator →

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