#2D1984#2D1984

#2D1984 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.164 H 280.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2D1984
RGBrgb(45, 25, 132)
HSLhsl(251, 68%, 31%)
HSVhsv(251, 81%, 52%)
CMYKcmyk(65.9%, 81.1%, 0%, 48.2%)
CIE-LABlab(19.72, 40.54, -55.95)
CIE-LCHlch(19.72, 69.09, 305.93°)
OKLaboklab(32.6% 0.0306 -0.1615)
OKLCHoklch(32.6% 0.164 280.7)
XYZxyz(5.5934, 2.9187, 22.0939)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1984 #708419
analogous
#193A84 #2D1984 #621984
triadic
#2D1984 #842D19 #19842D
tetradic
#2D1984 #84193A #708419 #198462
square
#2D1984 #84193A #708419 #198462
split-complementary
#2D1984 #846219 #3A8419
monochromatic
#0A061D #1B0F51 #2D1984 #3F23B7 #5A3DDA

Accessibility & contrast

On white

13.26
#2D1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1984
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1984#FFFFFF#000000##FFFFFF
##2D19841.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1984;
/* rgb */ color: rgb(45, 25, 132);
/* oklch */ color: oklch(32.6% 0.164 280.7);
Tailwind
colors: {
  custom: {
    50: '#7359a9',
    500: '#2d1984',
    950: '#000000',
  },
}
SCSS
$custom: #2d1984;
$custom-light: #7359a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1984",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 251.215,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32602,
    "c": 0.16435,
    "h": 280.7
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1984

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

Preview Lab → · Contrast checker → · Palette generator →

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