#2D1E71#2D1E71

#2D1E71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.135 H 283.7°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#2D1E71
RGBrgb(45, 30, 113)
HSLhsl(251, 58%, 28%)
HSVhsv(251, 73%, 44%)
CMYKcmyk(60.2%, 73.5%, 0%, 55.7%)
CIE-LABlab(18.71, 31.63, -45.48)
CIE-LCHlch(18.71, 55.40, 304.82°)
OKLaboklab(31.29% 0.0319 -0.1309)
OKLCHoklch(31.29% 0.135 283.7)
XYZxyz(4.5262, 2.6784, 15.8981)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E71 #62711E
analogous
#1E3971 #2D1E71 #561E71
triadic
#2D1E71 #712D1E #1E712D
tetradic
#2D1E71 #711E39 #62711E #1E7156
square
#2D1E71 #711E39 #62711E #1E7156
split-complementary
#2D1E71 #71561E #39711E
monochromatic
#0A0618 #1A1141 #2D1E71 #402BA1 #573ECC

Accessibility & contrast

On white

13.67
#2D1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E71
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E71#FFFFFF#000000##FFFFFF
##2D1E711.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#083445
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1e71;
/* rgb */ color: rgb(45, 30, 113);
/* oklch */ color: oklch(31.3% 0.135 283.7);
Tailwind
colors: {
  custom: {
    50: '#6e5b9b',
    500: '#2d1e71',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e71;
$custom-light: #6e5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e71",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 250.843,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31292,
    "c": 0.13474,
    "h": 283.7
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#2D1E71
secondary
#94A546
accent
#E147C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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