#2D1979#2D1979

#2D1979 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.151 H 283.0°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2D1979
RGBrgb(45, 25, 121)
HSLhsl(253, 66%, 29%)
HSVhsv(253, 79%, 47%)
CMYKcmyk(62.8%, 79.3%, 0%, 52.5%)
CIE-LABlab(18.51, 37.08, -50.94)
CIE-LCHlch(18.51, 63.01, 306.05°)
OKLaboklab(31.4% 0.0339 -0.1469)
OKLCHoklch(31.4% 0.151 283)
XYZxyz(4.8799, 2.6333, 18.3366)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1979 #657919
analogous
#193579 #2D1979 #5D1979
triadic
#2D1979 #792D19 #19792D
tetradic
#2D1979 #791935 #657919 #19795D
square
#2D1979 #791935 #657919 #19795D
split-complementary
#2D1979 #795D19 #357919
monochromatic
#090519 #1A0F46 #2D1979 #4023AC #5837D6

Accessibility & contrast

On white

13.75
#2D1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1979
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1979#FFFFFF#000000##FFFFFF
##2D19791.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1979;
/* rgb */ color: rgb(45, 25, 121);
/* oklch */ color: oklch(31.4% 0.151 283.0);
Tailwind
colors: {
  custom: {
    50: '#7159a1',
    500: '#2d1979',
    950: '#000000',
  },
}
SCSS
$custom: #2d1979;
$custom-light: #7159a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1979",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 252.5,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31402,
    "c": 0.15074,
    "h": 283
  },
  "luminance": 0.02634
}

Semantic roles & 50–950 ramp

primary
#2D1979
secondary
#97AE40
accent
#E93FC5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2D1979

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

Preview Lab → · Contrast checker → · Palette generator →

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