#2D1B7A#2D1B7A

#2D1B7A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.150 H 282.4°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#2D1B7A
RGBrgb(45, 27, 122)
HSLhsl(251, 64%, 29%)
HSVhsv(251, 78%, 48%)
CMYKcmyk(63.1%, 77.9%, 0%, 52.2%)
CIE-LABlab(19.00, 36.31, -50.78)
CIE-LCHlch(19.00, 62.43, 305.57°)
OKLaboklab(31.78% 0.0322 -0.1464)
OKLCHoklch(31.78% 0.15 282.4)
XYZxyz(4.9859, 2.7465, 18.6760)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B7A #687A1B
analogous
#1B397A #2D1B7A #5D1B7A
triadic
#2D1B7A #7A2D1B #1B7A2D
tetradic
#2D1B7A #7A1B39 #687A1B #1B7A5D
square
#2D1B7A #7A1B39 #687A1B #1B7A5D
split-complementary
#2D1B7A #7A5D1B #397A1B
monochromatic
#090619 #1B1048 #2D1B7A #3F26AC #583CD4

Accessibility & contrast

On white

13.55
#2D1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B7A
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B7A#FFFFFF#000000##FFFFFF
##2D1B7A1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1b7a;
/* rgb */ color: rgb(45, 27, 122);
/* oklch */ color: oklch(31.8% 0.150 282.4);
Tailwind
colors: {
  custom: {
    50: '#715aa1',
    500: '#2d1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b7a;
$custom-light: #715aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b7a",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 251.368,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31776,
    "c": 0.14991,
    "h": 282.4
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#2D1B7A
secondary
#9AAE43
accent
#E741C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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