#2D1564#2D1564

#2D1564 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.129 H 289.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2D1564
RGBrgb(45, 21, 100)
HSLhsl(258, 65%, 24%)
HSVhsv(258, 79%, 39%)
CMYKcmyk(55%, 79%, 0%, 60.8%)
CIE-LABlab(15.56, 32.65, -42.14)
CIE-LCHlch(15.56, 53.30, 307.77°)
OKLaboklab(28.67% 0.0431 -0.1211)
OKLCHoklch(28.67% 0.129 289.6)
XYZxyz(3.6499, 2.0142, 12.2506)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1564 #4C6415
analogous
#152464 #2D1564 #541564
triadic
#2D1564 #642D15 #15642D
tetradic
#2D1564 #641524 #4C6415 #156454
square
#2D1564 #641524 #4C6415 #156454
split-complementary
#2D1564 #645415 #246415
monochromatic
#0B0519 #160A31 #2D1564 #442097 #5B2AC9

Accessibility & contrast

On white

14.97
#2D1564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1564
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1564#FFFFFF#000000##FFFFFF
##2D15641.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#192B3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1564;
/* rgb */ color: rgb(45, 21, 100);
/* oklch */ color: oklch(28.7% 0.129 289.6);
Tailwind
colors: {
  custom: {
    50: '#6d5591',
    500: '#2d1564',
    950: '#000000',
  },
}
SCSS
$custom: #2d1564;
$custom-light: #6d5591;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1564",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 258.228,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28667,
    "c": 0.12852,
    "h": 289.6
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#2D1564
secondary
#7D9B3A
accent
#E840B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2D1564

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

Preview Lab → · Contrast checker → · Palette generator →

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