#2D1C7E#2D1C7E

#2D1C7E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.154 H 281.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2D1C7E
RGBrgb(45, 28, 126)
HSLhsl(250, 64%, 30%)
HSVhsv(250, 78%, 49%)
CMYKcmyk(64.3%, 77.8%, 0%, 50.6%)
CIE-LABlab(19.62, 37.05, -52.31)
CIE-LCHlch(19.62, 64.10, 305.31°)
OKLaboklab(32.34% 0.0304 -0.1509)
OKLCHoklch(32.34% 0.154 281.4)
XYZxyz(5.2622, 2.8944, 20.0160)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C7E #6D7E1C
analogous
#1C3C7E #2D1C7E #5E1C7E
triadic
#2D1C7E #7E2D1C #1C7E2D
tetradic
#2D1C7E #7E1C3C #6D7E1C #1C7E5E
square
#2D1C7E #7E1C3C #6D7E1C #1C7E5E
split-complementary
#2D1C7E #7E5E1C #3C7E1C
monochromatic
#09061A #1B114C #2D1C7E #3F27B0 #5A40D5

Accessibility & contrast

On white

13.30
#2D1C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D1C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C7E
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C7E#FFFFFF#000000##FFFFFF
##2D1C7E1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1c7e;
/* rgb */ color: rgb(45, 28, 126);
/* oklch */ color: oklch(32.3% 0.154 281.4);
Tailwind
colors: {
  custom: {
    50: '#715ba4',
    500: '#2d1c7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c7e;
$custom-light: #715ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c7e",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 250.408,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32337,
    "c": 0.15393,
    "h": 281.4
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#2D1C7E
secondary
#9FB244
accent
#E741CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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