#2D1661#2D1661

#2D1661 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.123 H 290.4°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#2D1661
RGBrgb(45, 22, 97)
HSLhsl(258, 63%, 23%)
HSVhsv(258, 77%, 38%)
CMYKcmyk(53.6%, 77.3%, 0%, 62%)
CIE-LABlab(15.46, 31.16, -40.32)
CIE-LCHlch(15.46, 50.95, 307.70°)
OKLaboklab(28.5% 0.0429 -0.1157)
OKLCHoklch(28.5% 0.123 290.4)
XYZxyz(3.5261, 1.9946, 11.5062)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1661 #4A6116
analogous
#162461 #2D1661 #521661
triadic
#2D1661 #612D16 #16612D
tetradic
#2D1661 #611624 #4A6116 #166152
square
#2D1661 #611624 #4A6116 #166152
split-complementary
#2D1661 #615216 #246116
monochromatic
#0C0619 #160B2F #2D1661 #442193 #5B2DC5

Accessibility & contrast

On white

15.01
#2D1661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2D1661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1661
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1661#FFFFFF#000000##FFFFFF
##2D16611.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#1B2A3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1661;
/* rgb */ color: rgb(45, 22, 97);
/* oklch */ color: oklch(28.5% 0.123 290.4);
Tailwind
colors: {
  custom: {
    50: '#6c568f',
    500: '#2d1661',
    950: '#000000',
  },
}
SCSS
$custom: #2d1661;
$custom-light: #6c568f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1661",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 97
  },
  "hsl": {
    "h": 258.4,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28503,
    "c": 0.12346,
    "h": 290.4
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#2D1661
secondary
#7B983B
accent
#E642B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1661

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

Preview Lab → · Contrast checker → · Palette generator →

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