#2D1B84#2D1B84

#2D1B84 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.162 H 280.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2D1B84
RGBrgb(45, 27, 132)
HSLhsl(250, 66%, 31%)
HSVhsv(250, 80%, 52%)
CMYKcmyk(65.9%, 79.5%, 0%, 48.2%)
CIE-LABlab(20.07, 39.51, -55.36)
CIE-LCHlch(20.07, 68.01, 305.51°)
OKLaboklab(32.85% 0.0294 -0.1598)
OKLCHoklch(32.85% 0.162 280.4)
XYZxyz(5.6377, 3.0073, 22.1087)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B84 #72841B
analogous
#1B3D84 #2D1B84 #611B84
triadic
#2D1B84 #842D1B #1B842D
tetradic
#2D1B84 #841B3D #72841B #1B8461
square
#2D1B84 #841B3D #72841B #1B8461
split-complementary
#2D1B84 #84611B #3D841B
monochromatic
#0A061E #1C1151 #2D1B84 #3E25B7 #5B41D8

Accessibility & contrast

On white

13.11
#2D1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D1B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B84
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B84#FFFFFF#000000##FFFFFF
##2D1B841.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1b84;
/* rgb */ color: rgb(45, 27, 132);
/* oklch */ color: oklch(32.9% 0.162 280.4);
Tailwind
colors: {
  custom: {
    50: '#735aa9',
    500: '#2d1b84',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b84;
$custom-light: #735aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b84",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 250.286,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32851,
    "c": 0.16246,
    "h": 280.4
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#2D1B84
secondary
#A3B743
accent
#E93FCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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