#2D1E77#2D1E77

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

Color values

HEX#2D1E77
RGBrgb(45, 30, 119)
HSLhsl(250, 60%, 29%)
HSVhsv(250, 75%, 47%)
CMYKcmyk(62.2%, 74.8%, 0%, 53.3%)
CIE-LABlab(19.30, 33.62, -48.37)
CIE-LCHlch(19.30, 58.90, 304.81°)
OKLaboklab(31.9% 0.0306 -0.1394)
OKLCHoklch(31.9% 0.143 282.4)
XYZxyz(4.8752, 2.8180, 17.7362)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E77 #68771E
analogous
#1E3C77 #2D1E77 #5A1E77
triadic
#2D1E77 #772D1E #1E772D
tetradic
#2D1E77 #771E3C #68771E #1E775A
square
#2D1E77 #771E3C #68771E #1E775A
split-complementary
#2D1E77 #775A1E #3C771E
monochromatic
#090618 #1B1246 #2D1E77 #3F2AA8 #5840CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1E77#FFFFFF#000000##FFFFFF
##2D1E771.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)
#00327A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1e77;
/* rgb */ color: rgb(45, 30, 119);
/* oklch */ color: oklch(31.9% 0.143 282.4);
Tailwind
colors: {
  custom: {
    50: '#705b9f',
    500: '#2d1e77',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e77;
$custom-light: #705b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e77",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 250.112,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31896,
    "c": 0.1427,
    "h": 282.4
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#2D1E77
secondary
#9AAB46
accent
#E345C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2D1E77

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

Preview Lab → · Contrast checker → · Palette generator →

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