#2D1980#2D1980

#2D1980 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 281.5°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#2D1980
RGBrgb(45, 25, 128)
HSLhsl(252, 67%, 30%)
HSVhsv(252, 80%, 50%)
CMYKcmyk(64.8%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.27, 39.29, -54.15)
CIE-LCHlch(19.27, 66.90, 305.96°)
OKLaboklab(32.16% 0.0318 -0.1562)
OKLCHoklch(32.16% 0.159 281.5)
XYZxyz(5.3249, 2.8113, 20.6799)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1980 #6C8019
analogous
#193980 #2D1980 #601980
triadic
#2D1980 #802D19 #19802D
tetradic
#2D1980 #801939 #6C8019 #198060
square
#2D1980 #801939 #6C8019 #198060
split-complementary
#2D1980 #806019 #398019
monochromatic
#09051A #1B0F4D #2D1980 #3F23B3 #593BD9

Accessibility & contrast

On white

13.44
#2D1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1980
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1980#FFFFFF#000000##FFFFFF
##2D19801.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1980;
/* rgb */ color: rgb(45, 25, 128);
/* oklch */ color: oklch(32.2% 0.159 281.5);
Tailwind
colors: {
  custom: {
    50: '#7259a6',
    500: '#2d1980',
    950: '#000000',
  },
}
SCSS
$custom: #2d1980;
$custom-light: #7259a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1980",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 251.65,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32161,
    "c": 0.15944,
    "h": 281.5
  },
  "luminance": 0.02812
}

Semantic roles & 50–950 ramp

primary
#2D1980
secondary
#9EB441
accent
#EA3EC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1980

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

Preview Lab → · Contrast checker → · Palette generator →

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