#2D1B83#2D1B83

#2D1B83 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.161 H 280.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2D1B83
RGBrgb(45, 27, 131)
HSLhsl(250, 66%, 31%)
HSVhsv(250, 79%, 51%)
CMYKcmyk(65.6%, 79.4%, 0%, 48.6%)
CIE-LABlab(19.96, 39.19, -54.91)
CIE-LCHlch(19.96, 67.46, 305.52°)
OKLaboklab(32.74% 0.0297 -0.1585)
OKLCHoklch(32.74% 0.161 280.6)
XYZxyz(5.5696, 2.9800, 21.7500)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B83 #71831B
analogous
#1B3D83 #2D1B83 #611B83
triadic
#2D1B83 #832D1B #1B832D
tetradic
#2D1B83 #831B3D #71831B #1B8361
square
#2D1B83 #831B3D #71831B #1B8361
split-complementary
#2D1B83 #83611B #3D831B
monochromatic
#0A061E #1C1150 #2D1B83 #3E25B6 #5B41D8

Accessibility & contrast

On white

13.16
#2D1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B83
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B83#FFFFFF#000000##FFFFFF
##2D1B831.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1b83;
/* rgb */ color: rgb(45, 27, 131);
/* oklch */ color: oklch(32.7% 0.161 280.6);
Tailwind
colors: {
  custom: {
    50: '#735aa8',
    500: '#2d1b83',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b83;
$custom-light: #735aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b83",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 250.385,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32742,
    "c": 0.16122,
    "h": 280.6
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#2D1B83
secondary
#A3B643
accent
#E93FCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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