#2D1C76#2D1C76

#2D1C76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.144 H 283.0°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2D1C76
RGBrgb(45, 28, 118)
HSLhsl(251, 62%, 29%)
HSVhsv(251, 76%, 46%)
CMYKcmyk(61.9%, 76.3%, 0%, 53.7%)
CIE-LABlab(18.78, 34.46, -48.57)
CIE-LCHlch(18.78, 59.55, 305.35°)
OKLaboklab(31.5% 0.0324 -0.14)
OKLCHoklch(31.5% 0.144 283)
XYZxyz(4.7664, 2.6961, 17.4053)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C76 #65761C
analogous
#1C3876 #2D1C76 #5A1C76
triadic
#2D1C76 #762D1C #1C762D
tetradic
#2D1C76 #761C38 #65761C #1C765A
square
#2D1C76 #761C38 #65761C #1C765A
split-complementary
#2D1C76 #765A1C #38761C
monochromatic
#090619 #1A1045 #2D1C76 #4028A7 #583CD1

Accessibility & contrast

On white

13.64
#2D1C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C76
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C76#FFFFFF#000000##FFFFFF
##2D1C761.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1c76;
/* rgb */ color: rgb(45, 28, 118);
/* oklch */ color: oklch(31.5% 0.144 283.0);
Tailwind
colors: {
  custom: {
    50: '#705a9e',
    500: '#2d1c76',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c76;
$custom-light: #705a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c76",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 251.333,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31498,
    "c": 0.14368,
    "h": 283
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#2D1C76
secondary
#97AA44
accent
#E543C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1C76

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

Preview Lab → · Contrast checker → · Palette generator →

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