#2D1480#2D1480

#2D1480 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.164 H 282.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#2D1480
RGBrgb(45, 20, 128)
HSLhsl(254, 73%, 29%)
HSVhsv(254, 84%, 50%)
CMYKcmyk(64.8%, 84.4%, 0%, 49.8%)
CIE-LABlab(18.44, 41.71, -55.53)
CIE-LCHlch(18.44, 69.45, 306.91°)
OKLaboklab(31.58% 0.0347 -0.1602)
OKLCHoklch(31.58% 0.164 282.2)
XYZxyz(5.2274, 2.6163, 20.6474)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1480 #678014
analogous
#143180 #2D1480 #631480
triadic
#2D1480 #802D14 #14802D
tetradic
#2D1480 #801431 #678014 #148063
square
#2D1480 #801431 #678014 #148063
split-complementary
#2D1480 #806314 #318014
monochromatic
#09041A #1A0C4B #2D1480 #401CB5 #5830DF

Accessibility & contrast

On white

13.78
#2D1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D1480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1480
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1480#FFFFFF#000000##FFFFFF
##2D14801.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1480;
/* rgb */ color: rgb(45, 20, 128);
/* oklch */ color: oklch(31.6% 0.164 282.2);
Tailwind
colors: {
  custom: {
    50: '#7356a6',
    500: '#2d1480',
    950: '#000000',
  },
}
SCSS
$custom: #2d1480;
$custom-light: #7356a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1480",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 253.889,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31582,
    "c": 0.16391,
    "h": 282.2
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#2D1480
secondary
#99B53B
accent
#F038C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D1480

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

Preview Lab → · Contrast checker → · Palette generator →

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