#2D1C81#2D1C81

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

Color values

HEX#2D1C81
RGBrgb(45, 28, 129)
HSLhsl(250, 64%, 31%)
HSVhsv(250, 78%, 51%)
CMYKcmyk(65.1%, 78.3%, 0%, 49.4%)
CIE-LABlab(19.94, 38.01, -53.69)
CIE-LCHlch(19.94, 65.78, 305.30°)
OKLaboklab(32.66% 0.0296 -0.1549)
OKLCHoklch(32.66% 0.158 280.8)
XYZxyz(5.4586, 2.9730, 21.0508)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C81 #70811C
analogous
#1C3D81 #2D1C81 #5F1C81
triadic
#2D1C81 #812D1C #1C812D
tetradic
#2D1C81 #811C3D #70811C #1C815F
square
#2D1C81 #811C3D #70811C #1C815F
split-complementary
#2D1C81 #815F1C #3D811C
monochromatic
#0A061C #1B114F #2D1C81 #3F27B3 #5A42D6

Accessibility & contrast

On white

13.17
#2D1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C81
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C81#FFFFFF#000000##FFFFFF
##2D1C811.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1c81;
/* rgb */ color: rgb(45, 28, 129);
/* oklch */ color: oklch(32.7% 0.158 280.8);
Tailwind
colors: {
  custom: {
    50: '#725ba7',
    500: '#2d1c81',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c81;
$custom-light: #725ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c81",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 250.099,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32658,
    "c": 0.15772,
    "h": 280.8
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#2D1C81
secondary
#A2B444
accent
#E740CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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