#2D1B81#2D1B81

#2D1B81 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.159 H 281.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2D1B81
RGBrgb(45, 27, 129)
HSLhsl(251, 65%, 31%)
HSVhsv(251, 79%, 51%)
CMYKcmyk(65.1%, 79.1%, 0%, 49.4%)
CIE-LABlab(19.75, 38.55, -54.00)
CIE-LCHlch(19.75, 66.35, 305.53°)
OKLaboklab(32.53% 0.0303 -0.1558)
OKLCHoklch(32.53% 0.159 281)
XYZxyz(5.4353, 2.9263, 21.0430)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B81 #6F811B
analogous
#1B3C81 #2D1B81 #601B81
triadic
#2D1B81 #812D1B #1B812D
tetradic
#2D1B81 #811B3C #6F811B #1B8160
square
#2D1B81 #811B3C #6F811B #1B8160
split-complementary
#2D1B81 #81601B #3C811B
monochromatic
#0A061C #1B104E #2D1B81 #3F26B4 #5A3FD7

Accessibility & contrast

On white

13.25
#2D1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B81
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B81#FFFFFF#000000##FFFFFF
##2D1B811.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1b81;
/* rgb */ color: rgb(45, 27, 129);
/* oklch */ color: oklch(32.5% 0.159 281.0);
Tailwind
colors: {
  custom: {
    50: '#725aa7',
    500: '#2d1b81',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b81;
$custom-light: #725aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b81",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 250.588,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32525,
    "c": 0.15873,
    "h": 281
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#2D1B81
secondary
#A1B543
accent
#E83FCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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