#2D1583#2D1583

#2D1583 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.167 H 281.5°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2D1583
RGBrgb(45, 21, 131)
HSLhsl(253, 72%, 30%)
HSVhsv(253, 84%, 51%)
CMYKcmyk(65.6%, 84%, 0%, 48.6%)
CIE-LABlab(18.94, 42.16, -56.60)
CIE-LCHlch(18.94, 70.57, 306.68°)
OKLaboklab(32.03% 0.0331 -0.1633)
OKLCHoklch(32.03% 0.167 281.5)
XYZxyz(5.4458, 2.7325, 21.7088)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1583 #6B8315
analogous
#153483 #2D1583 #641583
triadic
#2D1583 #832D15 #15832D
tetradic
#2D1583 #831534 #6B8315 #158364
square
#2D1583 #831534 #6B8315 #158364
split-complementary
#2D1583 #836415 #348315
monochromatic
#09041A #1B0D4E #2D1583 #3F1DB8 #5934DE

Accessibility & contrast

On white

13.58
#2D1583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D1583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1583
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1583#FFFFFF#000000##FFFFFF
##2D15831.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1583;
/* rgb */ color: rgb(45, 21, 131);
/* oklch */ color: oklch(32.0% 0.167 281.5);
Tailwind
colors: {
  custom: {
    50: '#7357a8',
    500: '#2d1583',
    950: '#000000',
  },
}
SCSS
$custom: #2d1583;
$custom-light: #7357a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1583",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 253.091,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3203,
    "c": 0.16665,
    "h": 281.5
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#2D1583
secondary
#9DB83C
accent
#EF39C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1583

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

Preview Lab → · Contrast checker → · Palette generator →

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