#2D1779#2D1779

#2D1779 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.153 H 283.3°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2D1779
RGBrgb(45, 23, 121)
HSLhsl(253, 68%, 28%)
HSVhsv(253, 81%, 47%)
CMYKcmyk(62.8%, 81%, 0%, 52.5%)
CIE-LABlab(18.15, 38.13, -51.54)
CIE-LCHlch(18.15, 64.11, 306.49°)
OKLaboklab(31.15% 0.0352 -0.1486)
OKLCHoklch(31.15% 0.153 283.3)
XYZxyz(4.8387, 2.5508, 18.3228)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1779 #637917
analogous
#173279 #2D1779 #5E1779
triadic
#2D1779 #792D17 #17792D
tetradic
#2D1779 #791732 #637917 #17795E
square
#2D1779 #791732 #637917 #17795E
split-complementary
#2D1779 #795E17 #327917
monochromatic
#0A051A #1A0D46 #2D1779 #4021AC #5832D8

Accessibility & contrast

On white

13.91
#2D1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1779
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1779#FFFFFF#000000##FFFFFF
##2D17791.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1779;
/* rgb */ color: rgb(45, 23, 121);
/* oklch */ color: oklch(31.1% 0.153 283.3);
Tailwind
colors: {
  custom: {
    50: '#7158a1',
    500: '#2d1779',
    950: '#000000',
  },
}
SCSS
$custom: #2d1779;
$custom-light: #7158a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1779",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 253.469,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31147,
    "c": 0.15273,
    "h": 283.3
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#2D1779
secondary
#95AE3E
accent
#EB3DC4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D1779

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

Preview Lab → · Contrast checker → · Palette generator →

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