#2D1D78#2D1D78

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

Color values

HEX#2D1D78
RGBrgb(45, 29, 120)
HSLhsl(251, 61%, 29%)
HSVhsv(251, 76%, 47%)
CMYKcmyk(62.5%, 75.8%, 0%, 52.9%)
CIE-LABlab(19.19, 34.53, -49.18)
CIE-LCHlch(19.19, 60.10, 305.08°)
OKLaboklab(31.85% 0.0312 -0.1418)
OKLCHoklch(31.85% 0.145 282.4)
XYZxyz(4.9107, 2.7923, 18.0459)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D78 #68781D
analogous
#1D3B78 #2D1D78 #5B1D78
triadic
#2D1D78 #782D1D #1D782D
tetradic
#2D1D78 #781D3B #68781D #1D785B
square
#2D1D78 #781D3B #68781D #1D785B
split-complementary
#2D1D78 #785B1D #3B781D
monochromatic
#090619 #1B1147 #2D1D78 #3F29A9 #583FD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1D78#FFFFFF#000000##FFFFFF
##2D1D781.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)
#00317B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1d78;
/* rgb */ color: rgb(45, 29, 120);
/* oklch */ color: oklch(31.9% 0.145 282.4);
Tailwind
colors: {
  custom: {
    50: '#705ba0',
    500: '#2d1d78',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d78;
$custom-light: #705ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d78",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 250.549,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3185,
    "c": 0.14514,
    "h": 282.4
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#2D1D78
secondary
#9AAC45
accent
#E444C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2D1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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