#2D1C73#2D1C73

#2D1C73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.140 H 283.7°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2D1C73
RGBrgb(45, 28, 115)
HSLhsl(252, 61%, 28%)
HSVhsv(252, 76%, 45%)
CMYKcmyk(60.9%, 75.7%, 0%, 54.9%)
CIE-LABlab(18.48, 33.48, -47.14)
CIE-LCHlch(18.48, 57.82, 305.38°)
OKLaboklab(31.19% 0.0332 -0.1358)
OKLCHoklch(31.19% 0.14 283.7)
XYZxyz(4.5910, 2.6259, 16.4813)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C73 #62731C
analogous
#1C3673 #2D1C73 #581C73
triadic
#2D1C73 #732D1C #1C732D
tetradic
#2D1C73 #731C36 #62731C #1C7358
square
#2D1C73 #731C36 #62731C #1C7358
split-complementary
#2D1C73 #73581C #36731C
monochromatic
#0A0619 #1A1042 #2D1C73 #4028A4 #573ACF

Accessibility & contrast

On white

13.77
#2D1C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C73
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C73#FFFFFF#000000##FFFFFF
##2D1C731.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#053445
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1c73;
/* rgb */ color: rgb(45, 28, 115);
/* oklch */ color: oklch(31.2% 0.140 283.7);
Tailwind
colors: {
  custom: {
    50: '#6f5a9c',
    500: '#2d1c73',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c73;
$custom-light: #6f5a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c73",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 115
  },
  "hsl": {
    "h": 251.724,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3119,
    "c": 0.13978,
    "h": 283.7
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#2D1C73
secondary
#94A743
accent
#E444C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1C73

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

Preview Lab → · Contrast checker → · Palette generator →

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