#2D1C7F#2D1C7F

#2D1C7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.155 H 281.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2D1C7F
RGBrgb(45, 28, 127)
HSLhsl(250, 64%, 30%)
HSVhsv(250, 78%, 50%)
CMYKcmyk(64.6%, 78%, 0%, 50.2%)
CIE-LABlab(19.72, 37.37, -52.77)
CIE-LCHlch(19.72, 64.67, 305.30°)
OKLaboklab(32.44% 0.0301 -0.1522)
OKLCHoklch(32.44% 0.155 281.2)
XYZxyz(5.3270, 2.9203, 20.3575)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C7F #6E7F1C
analogous
#1C3C7F #2D1C7F #5E1C7F
triadic
#2D1C7F #7F2D1C #1C7F2D
tetradic
#2D1C7F #7F1C3C #6E7F1C #1C7F5E
square
#2D1C7F #7F1C3C #6E7F1C #1C7F5E
split-complementary
#2D1C7F #7F5E1C #3C7F1C
monochromatic
#09061B #1B114D #2D1C7F #3F27B1 #5A40D5

Accessibility & contrast

On white

13.26
#2D1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C7F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C7F#FFFFFF#000000##FFFFFF
##2D1C7F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1c7f;
/* rgb */ color: rgb(45, 28, 127);
/* oklch */ color: oklch(32.4% 0.155 281.2);
Tailwind
colors: {
  custom: {
    50: '#725ba5',
    500: '#2d1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c7f;
$custom-light: #725ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c7f",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 250.303,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32444,
    "c": 0.1552,
    "h": 281.2
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#2D1C7F
secondary
#A0B344
accent
#E741CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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