#2D1563#2D1563

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

Color values

HEX#2D1563
RGBrgb(45, 21, 99)
HSLhsl(258, 65%, 24%)
HSVhsv(258, 79%, 39%)
CMYKcmyk(54.5%, 78.8%, 0%, 61.2%)
CIE-LABlab(15.46, 32.34, -41.64)
CIE-LCHlch(15.46, 52.72, 307.83°)
OKLaboklab(28.57% 0.0434 -0.1196)
OKLCHoklch(28.57% 0.127 289.9)
XYZxyz(3.6018, 1.9949, 11.9972)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1563 #4B6315
analogous
#152463 #2D1563 #541563
triadic
#2D1563 #632D15 #15632D
tetradic
#2D1563 #631524 #4B6315 #156354
square
#2D1563 #631524 #4B6315 #156354
split-complementary
#2D1563 #635415 #246315
monochromatic
#0B0519 #160A31 #2D1563 #442095 #5B2AC8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1563#FFFFFF#000000##FFFFFF
##2D15631.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)
#002865
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#1A2A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1563;
/* rgb */ color: rgb(45, 21, 99);
/* oklch */ color: oklch(28.6% 0.127 289.9);
Tailwind
colors: {
  custom: {
    50: '#6d5590',
    500: '#2d1563',
    950: '#000000',
  },
}
SCSS
$custom: #2d1563;
$custom-light: #6d5590;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1563",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 258.462,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28565,
    "c": 0.12725,
    "h": 289.9
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#2D1563
secondary
#7C9A3A
accent
#E840B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2D1563

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

Preview Lab → · Contrast checker → · Palette generator →

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