#2D1879#2D1879

#2D1879 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.152 H 283.2°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#2D1879
RGBrgb(45, 24, 121)
HSLhsl(253, 67%, 28%)
HSVhsv(253, 80%, 47%)
CMYKcmyk(62.8%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.33, 37.61, -51.25)
CIE-LCHlch(18.33, 63.57, 306.27°)
OKLaboklab(31.27% 0.0346 -0.1478)
OKLCHoklch(31.27% 0.152 283.2)
XYZxyz(4.8589, 2.5913, 18.3296)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1879 #647918
analogous
#183379 #2D1879 #5D1879
triadic
#2D1879 #792D18 #18792D
tetradic
#2D1879 #791833 #647918 #18795D
square
#2D1879 #791833 #647918 #18795D
split-complementary
#2D1879 #795D18 #337918
monochromatic
#09051A #1A0E46 #2D1879 #4022AC #5835D7

Accessibility & contrast

On white

13.83
#2D1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1879
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1879#FFFFFF#000000##FFFFFF
##2D18791.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1879;
/* rgb */ color: rgb(45, 24, 121);
/* oklch */ color: oklch(31.3% 0.152 283.2);
Tailwind
colors: {
  custom: {
    50: '#7158a1',
    500: '#2d1879',
    950: '#000000',
  },
}
SCSS
$custom: #2d1879;
$custom-light: #7158a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1879",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 252.99,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31273,
    "c": 0.15175,
    "h": 283.2
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#2D1879
secondary
#96AE3F
accent
#EA3EC5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2D1879

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

Preview Lab → · Contrast checker → · Palette generator →

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