#2F1471#2F1471

#2F1471 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.146 H 287.3°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2F1471
RGBrgb(47, 20, 113)
HSLhsl(257, 70%, 26%)
HSVhsv(257, 82%, 44%)
CMYKcmyk(58.4%, 82.3%, 0%, 55.7%)
CIE-LABlab(16.97, 37.44, -48.32)
CIE-LCHlch(16.97, 61.12, 307.77°)
OKLaboklab(30.12% 0.0432 -0.1391)
OKLCHoklch(30.12% 0.146 287.3)
XYZxyz(4.4022, 2.2967, 15.8309)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1471 #567114
analogous
#142771 #2F1471 #5D1471
triadic
#2F1471 #712F14 #14712F
tetradic
#2F1471 #711427 #567114 #14715D
square
#2F1471 #711427 #567114 #14715D
split-complementary
#2F1471 #715D14 #277114
monochromatic
#0B051A #190B3D #2F1471 #451DA5 #5A27D9

Accessibility & contrast

On white

14.39
#2F1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F1471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1471
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1471#FFFFFF#000000##FFFFFF
##2F14711.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#112F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1471;
/* rgb */ color: rgb(47, 20, 113);
/* oklch */ color: oklch(30.1% 0.146 287.3);
Tailwind
colors: {
  custom: {
    50: '#70569b',
    500: '#2f1471',
    950: '#000000',
  },
}
SCSS
$custom: #2f1471;
$custom-light: #70569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1471",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 257.419,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30121,
    "c": 0.14564,
    "h": 287.3
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#2F1471
secondary
#87A739
accent
#ED3BB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1471

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

Preview Lab → · Contrast checker → · Palette generator →

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