#2D1E78#2D1E78

#2D1E78 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.144 H 282.2°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2D1E78
RGBrgb(45, 30, 120)
HSLhsl(250, 60%, 29%)
HSVhsv(250, 75%, 47%)
CMYKcmyk(62.5%, 75%, 0%, 52.9%)
CIE-LABlab(19.40, 33.95, -48.84)
CIE-LCHlch(19.40, 59.48, 304.80°)
OKLaboklab(32% 0.0304 -0.1408)
OKLCHoklch(32% 0.144 282.2)
XYZxyz(4.9356, 2.8422, 18.0542)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E78 #69781E
analogous
#1E3C78 #2D1E78 #5A1E78
triadic
#2D1E78 #782D1E #1E782D
tetradic
#2D1E78 #781E3C #69781E #1E785A
square
#2D1E78 #781E3C #69781E #1E785A
split-complementary
#2D1E78 #785A1E #3C781E
monochromatic
#090618 #1B1247 #2D1E78 #3F2AA9 #5941CF

Accessibility & contrast

On white

13.39
#2D1E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E78
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E78#FFFFFF#000000##FFFFFF
##2D1E781.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1e78;
/* rgb */ color: rgb(45, 30, 120);
/* oklch */ color: oklch(32.0% 0.144 282.2);
Tailwind
colors: {
  custom: {
    50: '#705ca0',
    500: '#2d1e78',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e78;
$custom-light: #705ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e78",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 250,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31998,
    "c": 0.14401,
    "h": 282.2
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#2D1E78
secondary
#9BAC46
accent
#E345C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2D1E78

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

Preview Lab → · Contrast checker → · Palette generator →

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