#2D1C71#2D1C71

#2D1C71 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.137 H 284.2°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2D1C71
RGBrgb(45, 28, 113)
HSLhsl(252, 60%, 28%)
HSVhsv(252, 75%, 44%)
CMYKcmyk(60.2%, 75.2%, 0%, 55.7%)
CIE-LABlab(18.28, 32.82, -46.18)
CIE-LCHlch(18.28, 56.66, 305.41°)
OKLaboklab(30.99% 0.0336 -0.133)
OKLCHoklch(30.99% 0.137 284.2)
XYZxyz(4.4772, 2.5804, 15.8817)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C71 #60711C
analogous
#1C3571 #2D1C71 #571C71
triadic
#2D1C71 #712D1C #1C712D
tetradic
#2D1C71 #711C35 #60711C #1C7157
square
#2D1C71 #711C35 #60711C #1C7157
split-complementary
#2D1C71 #71571C #35711C
monochromatic
#0A0619 #191040 #2D1C71 #4128A2 #5739CE

Accessibility & contrast

On white

13.85
#2D1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D1C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C71
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C71#FFFFFF#000000##FFFFFF
##2D1C711.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#083344
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1c71;
/* rgb */ color: rgb(45, 28, 113);
/* oklch */ color: oklch(31.0% 0.137 284.2);
Tailwind
colors: {
  custom: {
    50: '#6f5a9b',
    500: '#2d1c71',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c71;
$custom-light: #6f5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c71",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 252,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30987,
    "c": 0.13715,
    "h": 284.2
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#2D1C71
secondary
#92A643
accent
#E344C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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