#2D1481#2D1481

#2D1481 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.165 H 282.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#2D1481
RGBrgb(45, 20, 129)
HSLhsl(254, 73%, 29%)
HSVhsv(254, 84%, 51%)
CMYKcmyk(65.1%, 84.5%, 0%, 49.4%)
CIE-LABlab(18.55, 42.01, -55.97)
CIE-LCHlch(18.55, 69.98, 306.89°)
OKLaboklab(31.7% 0.0344 -0.1615)
OKLCHoklch(31.7% 0.165 282)
XYZxyz(5.2936, 2.6428, 20.9958)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1481 #688114
analogous
#143281 #2D1481 #641481
triadic
#2D1481 #812D14 #14812D
tetradic
#2D1481 #811432 #688114 #148164
square
#2D1481 #811432 #688114 #148164
split-complementary
#2D1481 #816414 #328114
monochromatic
#09041A #1B0C4C #2D1481 #3F1CB6 #5830DF

Accessibility & contrast

On white

13.74
#2D1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1481
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1481#FFFFFF#000000##FFFFFF
##2D14811.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1481;
/* rgb */ color: rgb(45, 20, 129);
/* oklch */ color: oklch(31.7% 0.165 282.0);
Tailwind
colors: {
  custom: {
    50: '#7357a7',
    500: '#2d1481',
    950: '#000000',
  },
}
SCSS
$custom: #2d1481;
$custom-light: #7357a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1481",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 253.761,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31696,
    "c": 0.1651,
    "h": 282
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#2D1481
secondary
#9AB63B
accent
#F038C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1481

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

Preview Lab → · Contrast checker → · Palette generator →

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