#2D1783#2D1783

#2D1783 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.165 H 281.2°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2D1783
RGBrgb(45, 23, 131)
HSLhsl(252, 70%, 30%)
HSVhsv(252, 82%, 51%)
CMYKcmyk(65.6%, 82.4%, 0%, 48.6%)
CIE-LABlab(19.26, 41.22, -56.07)
CIE-LCHlch(19.26, 69.58, 306.32°)
OKLaboklab(32.25% 0.0321 -0.1618)
OKLCHoklch(32.25% 0.165 281.2)
XYZxyz(5.4840, 2.8090, 21.7215)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1783 #6D8317
analogous
#173783 #2D1783 #631783
triadic
#2D1783 #832D17 #17832D
tetradic
#2D1783 #831737 #6D8317 #178363
square
#2D1783 #831737 #6D8317 #178363
split-complementary
#2D1783 #836317 #378317
monochromatic
#09051B #1B0E4F #2D1783 #3F20B7 #5A38DC

Accessibility & contrast

On white

13.45
#2D1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1783
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1783#FFFFFF#000000##FFFFFF
##2D17831.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1783;
/* rgb */ color: rgb(45, 23, 131);
/* oklch */ color: oklch(32.3% 0.165 281.2);
Tailwind
colors: {
  custom: {
    50: '#7358a8',
    500: '#2d1783',
    950: '#000000',
  },
}
SCSS
$custom: #2d1783;
$custom-light: #7358a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1783",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 252.222,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32254,
    "c": 0.16494,
    "h": 281.2
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#2D1783
secondary
#9FB73F
accent
#ED3BC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1783

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

Preview Lab → · Contrast checker → · Palette generator →

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