#2D1B7B#2D1B7B

#2D1B7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.151 H 282.2°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2D1B7B
RGBrgb(45, 27, 123)
HSLhsl(251, 64%, 29%)
HSVhsv(251, 78%, 48%)
CMYKcmyk(63.4%, 78%, 0%, 51.8%)
CIE-LABlab(19.10, 36.63, -51.24)
CIE-LCHlch(19.10, 62.99, 305.56°)
OKLaboklab(31.88% 0.0319 -0.1478)
OKLCHoklch(31.88% 0.151 282.2)
XYZxyz(5.0482, 2.7715, 19.0040)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B7B #697B1B
analogous
#1B397B #2D1B7B #5D1B7B
triadic
#2D1B7B #7B2D1B #1B7B2D
tetradic
#2D1B7B #7B1B39 #697B1B #1B7B5D
square
#2D1B7B #7B1B39 #697B1B #1B7B5D
split-complementary
#2D1B7B #7B5D1B #397B1B
monochromatic
#090619 #1B1049 #2D1B7B #3F26AD #593CD4

Accessibility & contrast

On white

13.51
#2D1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B7B
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B7B#FFFFFF#000000##FFFFFF
##2D1B7B1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1b7b;
/* rgb */ color: rgb(45, 27, 123);
/* oklch */ color: oklch(31.9% 0.151 282.2);
Tailwind
colors: {
  custom: {
    50: '#715aa2',
    500: '#2d1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b7b;
$custom-light: #715aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b7b",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 251.25,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31882,
    "c": 0.15118,
    "h": 282.2
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#2D1B7B
secondary
#9BAF43
accent
#E741C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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