#2D1C70#2D1C70

#2D1C70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.136 H 284.4°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2D1C70
RGBrgb(45, 28, 112)
HSLhsl(252, 60%, 27%)
HSVhsv(252, 75%, 44%)
CMYKcmyk(59.8%, 75%, 0%, 56.1%)
CIE-LABlab(18.18, 32.50, -45.69)
CIE-LCHlch(18.18, 56.07, 305.42°)
OKLaboklab(30.89% 0.0338 -0.1315)
OKLCHoklch(30.89% 0.136 284.4)
XYZxyz(4.4212, 2.5580, 15.5869)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C70 #5F701C
analogous
#1C3570 #2D1C70 #571C70
triadic
#2D1C70 #702D1C #1C702D
tetradic
#2D1C70 #701C35 #5F701C #1C7057
square
#2D1C70 #701C35 #5F701C #1C7057
split-complementary
#2D1C70 #70571C #35701C
monochromatic
#0A0618 #19103F #2D1C70 #4128A1 #5739CD

Accessibility & contrast

On white

13.89
#2D1C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D1C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C70
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C70#FFFFFF#000000##FFFFFF
##2D1C701.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#0A3344
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1c70;
/* rgb */ color: rgb(45, 28, 112);
/* oklch */ color: oklch(30.9% 0.136 284.4);
Tailwind
colors: {
  custom: {
    50: '#6e5a9a',
    500: '#2d1c70',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c70;
$custom-light: #6e5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c70",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 252.143,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30886,
    "c": 0.13583,
    "h": 284.4
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#2D1C70
secondary
#91A543
accent
#E345C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1C70

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

Preview Lab → · Contrast checker → · Palette generator →

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