#2D1882#2D1882

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

Color values

HEX#2D1882
RGBrgb(45, 24, 130)
HSLhsl(252, 69%, 30%)
HSVhsv(252, 82%, 51%)
CMYKcmyk(65.4%, 81.5%, 0%, 49%)
CIE-LABlab(19.32, 40.42, -55.34)
CIE-LCHlch(19.32, 68.53, 306.14°)
OKLaboklab(32.26% 0.0318 -0.1597)
OKLCHoklch(32.26% 0.163 281.3)
XYZxyz(5.4368, 2.8225, 21.3730)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1882 #6D8218
analogous
#183882 #2D1882 #621882
triadic
#2D1882 #822D18 #18822D
tetradic
#2D1882 #821838 #6D8218 #188262
square
#2D1882 #821838 #6D8218 #188262
split-complementary
#2D1882 #826218 #388218
monochromatic
#09051B #1B0E4E #2D1882 #3F22B6 #5A3ADB

Accessibility & contrast

On white

13.42
#2D1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1882
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1882#FFFFFF#000000##FFFFFF
##2D18821.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1882;
/* rgb */ color: rgb(45, 24, 130);
/* oklch */ color: oklch(32.3% 0.163 281.3);
Tailwind
colors: {
  custom: {
    50: '#7359a7',
    500: '#2d1882',
    950: '#000000',
  },
}
SCSS
$custom: #2d1882;
$custom-light: #7359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1882",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 251.887,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32259,
    "c": 0.16283,
    "h": 281.3
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#2D1882
secondary
#9FB640
accent
#EC3CC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1882

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

Preview Lab → · Contrast checker → · Palette generator →

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