#2D1777#2D1777

#2D1777 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.150 H 283.8°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#2D1777
RGBrgb(45, 23, 119)
HSLhsl(254, 68%, 28%)
HSVhsv(254, 81%, 47%)
CMYKcmyk(62.2%, 80.7%, 0%, 53.3%)
CIE-LABlab(17.93, 37.50, -50.62)
CIE-LCHlch(17.93, 63.00, 306.53°)
OKLaboklab(30.93% 0.0359 -0.1459)
OKLCHoklch(30.93% 0.15 283.8)
XYZxyz(4.7173, 2.5023, 17.6836)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1777 #617717
analogous
#173177 #2D1777 #5D1777
triadic
#2D1777 #772D17 #17772D
tetradic
#2D1777 #771731 #617717 #17775D
square
#2D1777 #771731 #617717 #17775D
split-complementary
#2D1777 #775D17 #317717
monochromatic
#0A051A #1A0D44 #2D1777 #4021AA #5731D7

Accessibility & contrast

On white

13.99
#2D1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1777
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1777#FFFFFF#000000##FFFFFF
##2D17771.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1777;
/* rgb */ color: rgb(45, 23, 119);
/* oklch */ color: oklch(30.9% 0.150 283.8);
Tailwind
colors: {
  custom: {
    50: '#70579f',
    500: '#2d1777',
    950: '#000000',
  },
}
SCSS
$custom: #2d1777;
$custom-light: #70579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1777",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 253.75,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3093,
    "c": 0.15026,
    "h": 283.8
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#2D1777
secondary
#93AC3E
accent
#EA3DC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2D1777

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

Preview Lab → · Contrast checker → · Palette generator →

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