#2D1C7C#2D1C7C

#2D1C7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.151 H 281.8°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2D1C7C
RGBrgb(45, 28, 124)
HSLhsl(251, 63%, 30%)
HSVhsv(251, 77%, 49%)
CMYKcmyk(63.7%, 77.4%, 0%, 51.4%)
CIE-LABlab(19.41, 36.40, -51.39)
CIE-LCHlch(19.41, 62.98, 305.31°)
OKLaboklab(32.13% 0.0309 -0.1482)
OKLCHoklch(32.13% 0.151 281.8)
XYZxyz(5.1344, 2.8433, 19.3431)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C7C #6B7C1C
analogous
#1C3B7C #2D1C7C #5D1C7C
triadic
#2D1C7C #7C2D1C #1C7C2D
tetradic
#2D1C7C #7C1C3B #6B7C1C #1C7C5D
square
#2D1C7C #7C1C3B #6B7C1C #1C7C5D
split-complementary
#2D1C7C #7C5D1C #3B7C1C
monochromatic
#090619 #1B114A #2D1C7C #3F27AE #593FD4

Accessibility & contrast

On white

13.39
#2D1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C7C
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C7C#FFFFFF#000000##FFFFFF
##2D1C7C1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1c7c;
/* rgb */ color: rgb(45, 28, 124);
/* oklch */ color: oklch(32.1% 0.151 281.8);
Tailwind
colors: {
  custom: {
    50: '#715ba3',
    500: '#2d1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c7c;
$custom-light: #715ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c7c",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 250.625,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32125,
    "c": 0.15139,
    "h": 281.8
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#2D1C7C
secondary
#9DB044
accent
#E642C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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