#2D1881#2D1881

#2D1881 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.162 H 281.5°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2D1881
RGBrgb(45, 24, 129)
HSLhsl(252, 69%, 30%)
HSVhsv(252, 81%, 51%)
CMYKcmyk(65.1%, 81.4%, 0%, 49.4%)
CIE-LABlab(19.21, 40.11, -54.89)
CIE-LCHlch(19.21, 67.98, 306.15°)
OKLaboklab(32.15% 0.0321 -0.1584)
OKLCHoklch(32.15% 0.162 281.5)
XYZxyz(5.3700, 2.7957, 21.0213)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1881 #6C8118
analogous
#183881 #2D1881 #611881
triadic
#2D1881 #812D18 #18812D
tetradic
#2D1881 #811838 #6C8118 #188161
square
#2D1881 #811838 #6C8118 #188161
split-complementary
#2D1881 #816118 #388118
monochromatic
#09051A #1B0E4D #2D1881 #3F22B5 #5939DA

Accessibility & contrast

On white

13.47
#2D1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1881
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1881#FFFFFF#000000##FFFFFF
##2D18811.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1881;
/* rgb */ color: rgb(45, 24, 129);
/* oklch */ color: oklch(32.1% 0.162 281.5);
Tailwind
colors: {
  custom: {
    50: '#7259a7',
    500: '#2d1881',
    950: '#000000',
  },
}
SCSS
$custom: #2d1881;
$custom-light: #7259a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1881",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 252,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.32149,
    "c": 0.1616,
    "h": 281.5
  },
  "luminance": 0.02796
}

Semantic roles & 50–950 ramp

primary
#2D1881
secondary
#9EB540
accent
#EB3CC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1881

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

Preview Lab → · Contrast checker → · Palette generator →

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