#2D1684#2D1684

#2D1684 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.167 H 281.1°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2D1684
RGBrgb(45, 22, 132)
HSLhsl(253, 71%, 30%)
HSVhsv(253, 83%, 52%)
CMYKcmyk(65.9%, 83.3%, 0%, 48.2%)
CIE-LABlab(19.21, 42.00, -56.78)
CIE-LCHlch(19.21, 70.62, 306.49°)
OKLaboklab(32.25% 0.0323 -0.1638)
OKLCHoklch(32.25% 0.167 281.1)
XYZxyz(5.5326, 2.7972, 22.0737)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1684 #6D8416
analogous
#163684 #2D1684 #641684
triadic
#2D1684 #842D16 #16842D
tetradic
#2D1684 #841636 #6D8416 #168464
square
#2D1684 #841636 #6D8416 #168464
split-complementary
#2D1684 #846416 #368416
monochromatic
#09051B #1B0D50 #2D1684 #3F1FB8 #5A37DE

Accessibility & contrast

On white

13.46
#2D1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1684
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1684#FFFFFF#000000##FFFFFF
##2D16841.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1684;
/* rgb */ color: rgb(45, 22, 132);
/* oklch */ color: oklch(32.3% 0.167 281.1);
Tailwind
colors: {
  custom: {
    50: '#7358a9',
    500: '#2d1684',
    950: '#000000',
  },
}
SCSS
$custom: #2d1684;
$custom-light: #7358a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1684",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 252.545,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32253,
    "c": 0.167,
    "h": 281.1
  },
  "luminance": 0.02798
}

Semantic roles & 50–950 ramp

primary
#2D1684
secondary
#9FB83D
accent
#EE3AC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1684

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

Preview Lab → · Contrast checker → · Palette generator →

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