#2D1C75#2D1C75

#2D1C75 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.142 H 283.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1C75
RGBrgb(45, 28, 117)
HSLhsl(251, 61%, 28%)
HSVhsv(251, 76%, 46%)
CMYKcmyk(61.5%, 76.1%, 0%, 54.1%)
CIE-LABlab(18.68, 34.13, -48.10)
CIE-LCHlch(18.68, 58.98, 305.36°)
OKLaboklab(31.4% 0.0327 -0.1386)
OKLCHoklch(31.4% 0.142 283.3)
XYZxyz(4.7073, 2.6724, 17.0940)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C75 #64751C
analogous
#1C3775 #2D1C75 #591C75
triadic
#2D1C75 #752D1C #1C752D
tetradic
#2D1C75 #751C37 #64751C #1C7559
square
#2D1C75 #751C37 #64751C #1C7559
split-complementary
#2D1C75 #75591C #37751C
monochromatic
#090619 #1A1044 #2D1C75 #4028A6 #583BD0

Accessibility & contrast

On white

13.68
#2D1C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C75
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C75#FFFFFF#000000##FFFFFF
##2D1C751.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#013547
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1c75;
/* rgb */ color: rgb(45, 28, 117);
/* oklch */ color: oklch(31.4% 0.142 283.3);
Tailwind
colors: {
  custom: {
    50: '#705a9e',
    500: '#2d1c75',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c75;
$custom-light: #705a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c75",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 251.461,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31395,
    "c": 0.14238,
    "h": 283.3
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#2D1C75
secondary
#96A944
accent
#E443C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1C75

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

Preview Lab → · Contrast checker → · Palette generator →

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