#2D1559#2D1559

#2D1559 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.114 H 293.7°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#2D1559
RGBrgb(45, 21, 89)
HSLhsl(261, 62%, 22%)
HSVhsv(261, 76%, 35%)
CMYKcmyk(49.4%, 76.4%, 0%, 65.1%)
CIE-LABlab(14.49, 29.25, -36.56)
CIE-LCHlch(14.49, 46.82, 308.66°)
OKLaboklab(27.58% 0.0459 -0.1047)
OKLCHoklch(27.58% 0.114 293.7)
XYZxyz(3.1530, 1.8154, 9.6335)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1559 #415915
analogous
#151F59 #2D1559 #4F1559
triadic
#2D1559 #592D15 #15592D
tetradic
#2D1559 #59151F #415915 #15594F
square
#2D1559 #59151F #415915 #15594F
split-complementary
#2D1559 #594F15 #1F5915
monochromatic
#0D0619 #140927 #2D1559 #46218B #5F2CBC

Accessibility & contrast

On white

15.41
#2D1559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D1559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1559
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1559#FFFFFF#000000##FFFFFF
##2D15591.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#202635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1559;
/* rgb */ color: rgb(45, 21, 89);
/* oklch */ color: oklch(27.6% 0.114 293.7);
Tailwind
colors: {
  custom: {
    50: '#6b5589',
    500: '#2d1559',
    950: '#000000',
  },
}
SCSS
$custom: #2d1559;
$custom-light: #6b5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1559",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 261.176,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27576,
    "c": 0.11432,
    "h": 293.7
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#2D1559
secondary
#729139
accent
#E543AC
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1559

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

Preview Lab → · Contrast checker → · Palette generator →

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