#2D1680#2D1680

#2D1680 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.162 H 282.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2D1680
RGBrgb(45, 22, 128)
HSLhsl(253, 71%, 29%)
HSVhsv(253, 83%, 50%)
CMYKcmyk(64.8%, 82.8%, 0%, 49.8%)
CIE-LABlab(18.76, 40.78, -55.00)
CIE-LCHlch(18.76, 68.47, 306.55°)
OKLaboklab(31.8% 0.0336 -0.1587)
OKLCHoklch(31.8% 0.162 282)
XYZxyz(5.2642, 2.6898, 20.6597)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1680 #698016
analogous
#163480 #2D1680 #621680
triadic
#2D1680 #802D16 #16802D
tetradic
#2D1680 #801634 #698016 #168062
square
#2D1680 #801634 #698016 #168062
split-complementary
#2D1680 #806216 #348016
monochromatic
#09041A #1B0D4C #2D1680 #3F1FB4 #5934DC

Accessibility & contrast

On white

13.65
#2D1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1680
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1680#FFFFFF#000000##FFFFFF
##2D16801.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1680;
/* rgb */ color: rgb(45, 22, 128);
/* oklch */ color: oklch(31.8% 0.162 282.0);
Tailwind
colors: {
  custom: {
    50: '#7257a6',
    500: '#2d1680',
    950: '#000000',
  },
}
SCSS
$custom: #2d1680;
$custom-light: #7257a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1680",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 253.019,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31803,
    "c": 0.1622,
    "h": 282
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#2D1680
secondary
#9BB53D
accent
#ED3AC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D1680

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

Preview Lab → · Contrast checker → · Palette generator →

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