#2D1982#2D1982

#2D1982 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.162 H 281.1°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2D1982
RGBrgb(45, 25, 130)
HSLhsl(251, 68%, 30%)
HSVhsv(251, 81%, 51%)
CMYKcmyk(65.4%, 80.8%, 0%, 49%)
CIE-LABlab(19.49, 39.91, -55.05)
CIE-LCHlch(19.49, 68.00, 305.94°)
OKLaboklab(32.38% 0.0312 -0.1589)
OKLCHoklch(32.38% 0.162 281.1)
XYZxyz(5.4578, 2.8644, 21.3800)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1982 #6E8219
analogous
#193982 #2D1982 #621982
triadic
#2D1982 #822D19 #19822D
tetradic
#2D1982 #821939 #6E8219 #198262
square
#2D1982 #821939 #6E8219 #198262
split-complementary
#2D1982 #826219 #398219
monochromatic
#09051B #1B0F4F #2D1982 #3F23B5 #5A3CD9

Accessibility & contrast

On white

13.35
#2D1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1982
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1982#FFFFFF#000000##FFFFFF
##2D19821.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1982;
/* rgb */ color: rgb(45, 25, 130);
/* oklch */ color: oklch(32.4% 0.162 281.1);
Tailwind
colors: {
  custom: {
    50: '#7359a7',
    500: '#2d1982',
    950: '#000000',
  },
}
SCSS
$custom: #2d1982;
$custom-light: #7359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1982",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 251.429,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32381,
    "c": 0.1619,
    "h": 281.1
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#2D1982
secondary
#A0B641
accent
#EB3DCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1982

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

Preview Lab → · Contrast checker → · Palette generator →

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