#2F1D71#2F1D71

#2F1D71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.136 H 285.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2F1D71
RGBrgb(47, 29, 113)
HSLhsl(253, 59%, 28%)
HSVhsv(253, 74%, 44%)
CMYKcmyk(58.4%, 74.3%, 0%, 55.7%)
CIE-LABlab(18.69, 32.56, -45.49)
CIE-LCHlch(18.69, 55.94, 305.59°)
OKLaboklab(31.33% 0.0358 -0.1309)
OKLCHoklch(31.33% 0.136 285.3)
XYZxyz(4.5914, 2.6751, 15.8940)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D71 #5F711D
analogous
#1D3571 #2F1D71 #591D71
triadic
#2F1D71 #712F1D #1D712F
tetradic
#2F1D71 #711D35 #5F711D #1D7159
square
#2F1D71 #711D35 #5F711D #1D7159
split-complementary
#2F1D71 #71591D #35711D
monochromatic
#0A0618 #1B1140 #2F1D71 #4329A2 #5B3CCD

Accessibility & contrast

On white

13.68
#2F1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D71
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D71#FFFFFF#000000##FFFFFF
##2F1D711.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#103345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1d71;
/* rgb */ color: rgb(47, 29, 113);
/* oklch */ color: oklch(31.3% 0.136 285.3);
Tailwind
colors: {
  custom: {
    50: '#705b9b',
    500: '#2f1d71',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d71;
$custom-light: #705b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d71",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 252.857,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31331,
    "c": 0.13571,
    "h": 285.3
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#2F1D71
secondary
#91A544
accent
#E245C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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