#2D1671#2D1671

#2D1671 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.144 H 285.5°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2D1671
RGBrgb(45, 22, 113)
HSLhsl(255, 67%, 26%)
HSVhsv(255, 81%, 44%)
CMYKcmyk(60.2%, 80.5%, 0%, 55.7%)
CIE-LABlab(17.10, 36.15, -48.11)
CIE-LCHlch(17.10, 60.18, 306.92°)
OKLaboklab(30.16% 0.0384 -0.1386)
OKLCHoklch(30.16% 0.144 285.5)
XYZxyz(4.3488, 2.3237, 15.8389)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1671 #5A7116
analogous
#162D71 #2D1671 #5B1671
triadic
#2D1671 #712D16 #16712D
tetradic
#2D1671 #71162D #5A7116 #16715B
square
#2D1671 #71162D #5A7116 #16715B
split-complementary
#2D1671 #715B16 #2D7116
monochromatic
#0A051A #190C3E #2D1671 #4120A4 #572CD6

Accessibility & contrast

On white

14.34
#2D1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1671
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1671#FFFFFF#000000##FFFFFF
##2D16711.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1671;
/* rgb */ color: rgb(45, 22, 113);
/* oklch */ color: oklch(30.2% 0.144 285.5);
Tailwind
colors: {
  custom: {
    50: '#6f569b',
    500: '#2d1671',
    950: '#000000',
  },
}
SCSS
$custom: #2d1671;
$custom-light: #6f569b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1671",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 255.165,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30158,
    "c": 0.14381,
    "h": 285.5
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#2D1671
secondary
#8CA73C
accent
#EA3EBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1671

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

Preview Lab → · Contrast checker → · Palette generator →

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