#2D1685#2D1685

#2D1685 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.168 H 280.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2D1685
RGBrgb(45, 22, 133)
HSLhsl(252, 72%, 30%)
HSVhsv(252, 83%, 52%)
CMYKcmyk(66.2%, 83.5%, 0%, 47.8%)
CIE-LABlab(19.33, 42.30, -57.22)
CIE-LCHlch(19.33, 71.16, 306.48°)
OKLaboklab(32.37% 0.0319 -0.1651)
OKLCHoklch(32.37% 0.168 280.9)
XYZxyz(5.6014, 2.8247, 22.4358)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1685 #6E8516
analogous
#163785 #2D1685 #641685
triadic
#2D1685 #852D16 #16852D
tetradic
#2D1685 #851637 #6E8516 #168564
square
#2D1685 #851637 #6E8516 #168564
split-complementary
#2D1685 #856416 #378516
monochromatic
#09051C #1B0D50 #2D1685 #3F1FBA #5A37DE

Accessibility & contrast

On white

13.42
#2D1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1685
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1685#FFFFFF#000000##FFFFFF
##2D16851.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1685;
/* rgb */ color: rgb(45, 22, 133);
/* oklch */ color: oklch(32.4% 0.168 280.9);
Tailwind
colors: {
  custom: {
    50: '#7358aa',
    500: '#2d1685',
    950: '#000000',
  },
}
SCSS
$custom: #2d1685;
$custom-light: #7358aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1685",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 252.432,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32367,
    "c": 0.16819,
    "h": 280.9
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#2D1685
secondary
#A0B93E
accent
#EE39C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1685

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

Preview Lab → · Contrast checker → · Palette generator →

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