#2D1B82#2D1B82

#2D1B82 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.160 H 280.8°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2D1B82
RGBrgb(45, 27, 130)
HSLhsl(250, 66%, 31%)
HSVhsv(250, 79%, 51%)
CMYKcmyk(65.4%, 79.2%, 0%, 49%)
CIE-LABlab(19.85, 38.87, -54.45)
CIE-LCHlch(19.85, 66.91, 305.52°)
OKLaboklab(32.63% 0.03 -0.1571)
OKLCHoklch(32.63% 0.16 280.8)
XYZxyz(5.5021, 2.9530, 21.3948)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B82 #70821B
analogous
#1B3D82 #2D1B82 #601B82
triadic
#2D1B82 #822D1B #1B822D
tetradic
#2D1B82 #821B3D #70821B #1B8260
square
#2D1B82 #821B3D #70821B #1B8260
split-complementary
#2D1B82 #82601B #3D821B
monochromatic
#0A061D #1B104F #2D1B82 #3F26B5 #5A40D7

Accessibility & contrast

On white

13.20
#2D1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B82
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B82#FFFFFF#000000##FFFFFF
##2D1B821.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1b82;
/* rgb */ color: rgb(45, 27, 130);
/* oklch */ color: oklch(32.6% 0.160 280.8);
Tailwind
colors: {
  custom: {
    50: '#725aa7',
    500: '#2d1b82',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b82;
$custom-light: #725aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b82",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 250.485,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32634,
    "c": 0.15997,
    "h": 280.8
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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