#2F1371#2F1371

#2F1371 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.147 H 287.4°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1371
RGBrgb(47, 19, 113)
HSLhsl(258, 71%, 26%)
HSVhsv(258, 83%, 44%)
CMYKcmyk(58.4%, 83.2%, 0%, 55.7%)
CIE-LABlab(16.81, 37.92, -48.59)
CIE-LCHlch(16.81, 61.63, 307.97°)
OKLaboklab(30.01% 0.0439 -0.1399)
OKLCHoklch(30.01% 0.147 287.4)
XYZxyz(4.3849, 2.2621, 15.8252)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1371 #557113
analogous
#132671 #2F1371 #5E1371
triadic
#2F1371 #712F13 #13712F
tetradic
#2F1371 #711326 #557113 #13715E
square
#2F1371 #711326 #557113 #13715E
split-complementary
#2F1371 #715E13 #267113
monochromatic
#0B041A #190A3D #2F1371 #451CA5 #5B25DA

Accessibility & contrast

On white

14.46
#2F1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1371
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1371#FFFFFF#000000##FFFFFF
##2F13711.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1371;
/* rgb */ color: rgb(47, 19, 113);
/* oklch */ color: oklch(30.0% 0.147 287.4);
Tailwind
colors: {
  custom: {
    50: '#71559b',
    500: '#2f1371',
    950: '#000000',
  },
}
SCSS
$custom: #2f1371;
$custom-light: #71559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1371",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 257.872,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30005,
    "c": 0.14661,
    "h": 287.4
  },
  "luminance": 0.02262
}

Semantic roles & 50–950 ramp

primary
#2F1371
secondary
#86A838
accent
#EE3AB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1371

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

Preview Lab → · Contrast checker → · Palette generator →

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