#2D1471#2D1471

#2D1471 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.146 H 285.9°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2D1471
RGBrgb(45, 20, 113)
HSLhsl(256, 70%, 26%)
HSVhsv(256, 82%, 44%)
CMYKcmyk(60.2%, 82.3%, 0%, 55.7%)
CIE-LABlab(16.75, 37.17, -48.69)
CIE-LCHlch(16.75, 61.26, 307.36°)
OKLaboklab(29.91% 0.0399 -0.1403)
OKLCHoklch(29.91% 0.146 285.9)
XYZxyz(4.3121, 2.2502, 15.8267)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1471 #587114
analogous
#142971 #2D1471 #5B1471
triadic
#2D1471 #712D14 #14712D
tetradic
#2D1471 #711429 #587114 #14715B
square
#2D1471 #711429 #587114 #14715B
split-complementary
#2D1471 #715B14 #297114
monochromatic
#0A051A #180B3D #2D1471 #421DA5 #5727D9

Accessibility & contrast

On white

14.48
#2D1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1471
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1471#FFFFFF#000000##FFFFFF
##2D14711.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1471;
/* rgb */ color: rgb(45, 20, 113);
/* oklch */ color: oklch(29.9% 0.146 285.9);
Tailwind
colors: {
  custom: {
    50: '#6f559b',
    500: '#2d1471',
    950: '#000000',
  },
}
SCSS
$custom: #2d1471;
$custom-light: #6f559b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1471",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 256.129,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29912,
    "c": 0.14581,
    "h": 285.9
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#2D1471
secondary
#8AA739
accent
#ED3BBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1471

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

Preview Lab → · Contrast checker → · Palette generator →

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