#2D1B79#2D1B79

#2D1B79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.149 H 282.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2D1B79
RGBrgb(45, 27, 121)
HSLhsl(251, 64%, 29%)
HSVhsv(251, 78%, 47%)
CMYKcmyk(62.8%, 77.7%, 0%, 52.5%)
CIE-LABlab(18.89, 35.99, -50.31)
CIE-LCHlch(18.89, 61.86, 305.58°)
OKLaboklab(31.67% 0.0324 -0.1451)
OKLCHoklch(31.67% 0.149 282.6)
XYZxyz(4.9242, 2.7219, 18.3513)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B79 #67791B
analogous
#1B3879 #2D1B79 #5C1B79
triadic
#2D1B79 #792D1B #1B792D
tetradic
#2D1B79 #791B38 #67791B #1B795C
square
#2D1B79 #791B38 #67791B #1B795C
split-complementary
#2D1B79 #795C1B #38791B
monochromatic
#090619 #1A1047 #2D1B79 #4026AB #583BD3

Accessibility & contrast

On white

13.60
#2D1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B79
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B79#FFFFFF#000000##FFFFFF
##2D1B791.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.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: #2d1b79;
/* rgb */ color: rgb(45, 27, 121);
/* oklch */ color: oklch(31.7% 0.149 282.6);
Tailwind
colors: {
  custom: {
    50: '#705aa1',
    500: '#2d1b79',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b79;
$custom-light: #705aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b79",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 251.489,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31671,
    "c": 0.14864,
    "h": 282.6
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#2D1B79
secondary
#99AD43
accent
#E741C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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