#2D1C82#2D1C82

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

Color values

HEX#2D1C82
RGBrgb(45, 28, 130)
HSLhsl(250, 65%, 31%)
HSVhsv(250, 78%, 51%)
CMYKcmyk(65.4%, 78.5%, 0%, 49%)
CIE-LABlab(20.04, 38.34, -54.14)
CIE-LCHlch(20.04, 66.34, 305.30°)
OKLaboklab(32.77% 0.0293 -0.1562)
OKLCHoklch(32.77% 0.159 280.6)
XYZxyz(5.5254, 2.9997, 21.4026)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C82 #71821C
analogous
#1C3E82 #2D1C82 #601C82
triadic
#2D1C82 #822D1C #1C822D
tetradic
#2D1C82 #821C3E #71821C #1C8260
square
#2D1C82 #821C3E #71821C #1C8260
split-complementary
#2D1C82 #82601C #3E821C
monochromatic
#0A061D #1C1150 #2D1C82 #3E27B4 #5B42D6

Accessibility & contrast

On white

13.13
#2D1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C82
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C82#FFFFFF#000000##FFFFFF
##2D1C821.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1c82;
/* rgb */ color: rgb(45, 28, 130);
/* oklch */ color: oklch(32.8% 0.159 280.6);
Tailwind
colors: {
  custom: {
    50: '#725ba7',
    500: '#2d1c82',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c82;
$custom-light: #725ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c82",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 250,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32765,
    "c": 0.15898,
    "h": 280.6
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#2D1C82
secondary
#A3B544
accent
#E840CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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