#2D1C74#2D1C74

#2D1C74 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.141 H 283.5°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2D1C74
RGBrgb(45, 28, 116)
HSLhsl(252, 61%, 28%)
HSVhsv(252, 76%, 45%)
CMYKcmyk(61.2%, 75.9%, 0%, 54.5%)
CIE-LABlab(18.58, 33.81, -47.62)
CIE-LCHlch(18.58, 58.40, 305.37°)
OKLaboklab(31.29% 0.0329 -0.1372)
OKLCHoklch(31.29% 0.141 283.5)
XYZxyz(4.6489, 2.6490, 16.7860)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C74 #63741C
analogous
#1C3774 #2D1C74 #591C74
triadic
#2D1C74 #742D1C #1C742D
tetradic
#2D1C74 #741C37 #63741C #1C7459
square
#2D1C74 #741C37 #63741C #1C7459
split-complementary
#2D1C74 #74591C #37741C
monochromatic
#0A0619 #1A1043 #2D1C74 #4028A5 #583BD0

Accessibility & contrast

On white

13.73
#2D1C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C74
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C74#FFFFFF#000000##FFFFFF
##2D1C741.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#033446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1c74;
/* rgb */ color: rgb(45, 28, 116);
/* oklch */ color: oklch(31.3% 0.141 283.5);
Tailwind
colors: {
  custom: {
    50: '#6f5a9d',
    500: '#2d1c74',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c74;
$custom-light: #6f5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c74",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 251.591,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31293,
    "c": 0.14108,
    "h": 283.5
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#2D1C74
secondary
#95A843
accent
#E444C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1C74

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

Preview Lab → · Contrast checker → · Palette generator →

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