#2D1C7B#2D1C7B

#2D1C7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.150 H 282.0°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2D1C7B
RGBrgb(45, 28, 123)
HSLhsl(251, 63%, 30%)
HSVhsv(251, 77%, 48%)
CMYKcmyk(63.4%, 77.2%, 0%, 51.8%)
CIE-LABlab(19.30, 36.08, -50.92)
CIE-LCHlch(19.30, 62.41, 305.32°)
OKLaboklab(32.02% 0.0312 -0.1468)
OKLCHoklch(32.02% 0.15 282)
XYZxyz(5.0715, 2.8181, 19.0118)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C7B #6A7B1C
analogous
#1C3B7B #2D1C7B #5D1C7B
triadic
#2D1C7B #7B2D1C #1C7B2D
tetradic
#2D1C7B #7B1C3B #6A7B1C #1C7B5D
square
#2D1C7B #7B1C3B #6A7B1C #1C7B5D
split-complementary
#2D1C7B #7B5D1C #3B7B1C
monochromatic
#090619 #1B1149 #2D1C7B #3F27AD #593ED3

Accessibility & contrast

On white

13.43
#2D1C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D1C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C7B
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C7B#FFFFFF#000000##FFFFFF
##2D1C7B1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1c7b;
/* rgb */ color: rgb(45, 28, 123);
/* oklch */ color: oklch(32.0% 0.150 282.0);
Tailwind
colors: {
  custom: {
    50: '#715aa2',
    500: '#2d1c7b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c7b;
$custom-light: #715aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c7b",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 250.737,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3202,
    "c": 0.15011,
    "h": 282
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#2D1C7B
secondary
#9CAF44
accent
#E642C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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