#2D1B7C#2D1B7C

#2D1B7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.152 H 282.0°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2D1B7C
RGBrgb(45, 27, 124)
HSLhsl(251, 64%, 30%)
HSVhsv(251, 78%, 49%)
CMYKcmyk(63.7%, 78.2%, 0%, 51.4%)
CIE-LABlab(19.21, 36.96, -51.71)
CIE-LCHlch(19.21, 63.56, 305.55°)
OKLaboklab(31.99% 0.0316 -0.1491)
OKLCHoklch(31.99% 0.152 282)
XYZxyz(5.1111, 2.7966, 19.3353)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B7C #6A7C1B
analogous
#1B3A7C #2D1B7C #5E1B7C
triadic
#2D1B7C #7C2D1B #1B7C2D
tetradic
#2D1B7C #7C1B3A #6A7C1B #1B7C5E
square
#2D1B7C #7C1B3A #6A7C1B #1B7C5E
split-complementary
#2D1B7C #7C5E1B #3A7C1B
monochromatic
#090519 #1B104A #2D1B7C #3F26AE #593DD5

Accessibility & contrast

On white

13.47
#2D1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B7C
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B7C#FFFFFF#000000##FFFFFF
##2D1B7C1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1b7c;
/* rgb */ color: rgb(45, 27, 124);
/* oklch */ color: oklch(32.0% 0.152 282.0);
Tailwind
colors: {
  custom: {
    50: '#715aa3',
    500: '#2d1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b7c;
$custom-light: #715aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b7c",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 251.134,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31988,
    "c": 0.15245,
    "h": 282
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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