#2F1F76#2F1F76

#2F1F76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.140 H 283.6°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1F76
RGBrgb(47, 31, 118)
HSLhsl(251, 58%, 29%)
HSVhsv(251, 74%, 46%)
CMYKcmyk(60.2%, 73.7%, 0%, 53.7%)
CIE-LABlab(19.61, 33.01, -47.21)
CIE-LCHlch(19.61, 57.61, 304.96°)
OKLaboklab(32.13% 0.033 -0.1359)
OKLCHoklch(32.13% 0.14 283.6)
XYZxyz(4.9313, 2.8920, 17.4344)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F76 #66761F
analogous
#1F3B76 #2F1F76 #5B1F76
triadic
#2F1F76 #762F1F #1F762F
tetradic
#2F1F76 #761F3B #66761F #1F765B
square
#2F1F76 #761F3B #66761F #1F765B
split-complementary
#2F1F76 #765B1F #3B761F
monochromatic
#0A0618 #1C1246 #2F1F76 #422CA6 #5C42CD

Accessibility & contrast

On white

13.30
#2F1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F76
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F76#FFFFFF#000000##FFFFFF
##2F1F761.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#073648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1f76;
/* rgb */ color: rgb(47, 31, 118);
/* oklch */ color: oklch(32.1% 0.140 283.6);
Tailwind
colors: {
  custom: {
    50: '#705c9e',
    500: '#2f1f76',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f76;
$custom-light: #705c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f76",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 251.034,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32131,
    "c": 0.1399,
    "h": 283.6
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#2F1F76
secondary
#98AA47
accent
#E246C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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