#2D1281#2D1281

#2D1281 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.167 H 282.3°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#2D1281
RGBrgb(45, 18, 129)
HSLhsl(255, 76%, 29%)
HSVhsv(255, 86%, 51%)
CMYKcmyk(65.1%, 86%, 0%, 49.4%)
CIE-LABlab(18.25, 42.89, -56.46)
CIE-LCHlch(18.25, 70.90, 307.22°)
OKLaboklab(31.49% 0.0354 -0.1629)
OKLCHoklch(31.49% 0.167 282.3)
XYZxyz(5.2597, 2.5751, 20.9845)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1281 #668112
analogous
#122F81 #2D1281 #651281
triadic
#2D1281 #812D12 #12812D
tetradic
#2D1281 #81122F #668112 #128165
square
#2D1281 #81122F #668112 #128165
split-complementary
#2D1281 #816512 #2F8112
monochromatic
#09041B #1A0B4B #2D1281 #4019B7 #582CE2

Accessibility & contrast

On white

13.86
#2D1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1281
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1281#FFFFFF#000000##FFFFFF
##2D12811.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1281;
/* rgb */ color: rgb(45, 18, 129);
/* oklch */ color: oklch(31.5% 0.167 282.3);
Tailwind
colors: {
  custom: {
    50: '#7356a7',
    500: '#2d1281',
    950: '#000000',
  },
}
SCSS
$custom: #2d1281;
$custom-light: #7356a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1281",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 254.595,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31491,
    "c": 0.16668,
    "h": 282.3
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#2D1281
secondary
#98B738
accent
#F236C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1281

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

Preview Lab → · Contrast checker → · Palette generator →

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