#2D1C79#2D1C79

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

Color values

HEX#2D1C79
RGBrgb(45, 28, 121)
HSLhsl(251, 62%, 29%)
HSVhsv(251, 77%, 47%)
CMYKcmyk(62.8%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.09, 35.43, -49.99)
CIE-LCHlch(19.09, 61.27, 305.33°)
OKLaboklab(31.81% 0.0317 -0.1441)
OKLCHoklch(31.81% 0.148 282.4)
XYZxyz(4.9476, 2.7685, 18.3591)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C79 #68791C
analogous
#1C3A79 #2D1C79 #5C1C79
triadic
#2D1C79 #792D1C #1C792D
tetradic
#2D1C79 #791C3A #68791C #1C795C
square
#2D1C79 #791C3A #68791C #1C795C
split-complementary
#2D1C79 #795C1C #3A791C
monochromatic
#090619 #1B1047 #2D1C79 #3F28AB #583DD2

Accessibility & contrast

On white

13.52
#2D1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D1C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C79
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C79#FFFFFF#000000##FFFFFF
##2D1C791.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1c79;
/* rgb */ color: rgb(45, 28, 121);
/* oklch */ color: oklch(31.8% 0.148 282.4);
Tailwind
colors: {
  custom: {
    50: '#705aa1',
    500: '#2d1c79',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c79;
$custom-light: #705aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c79",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 250.968,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3181,
    "c": 0.14755,
    "h": 282.4
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#2D1C79
secondary
#9AAD44
accent
#E542C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1C79

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

Preview Lab → · Contrast checker → · Palette generator →

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