#2D1456#2D1456

#2D1456 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.112 H 295.2°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2D1456
RGBrgb(45, 20, 86)
HSLhsl(263, 62%, 21%)
HSVhsv(263, 77%, 34%)
CMYKcmyk(47.7%, 76.7%, 0%, 66.3%)
CIE-LABlab(14.00, 28.90, -35.32)
CIE-LCHlch(14.00, 45.64, 309.29°)
OKLaboklab(27.14% 0.0476 -0.1011)
OKLCHoklch(27.14% 0.112 295.2)
XYZxyz(3.0116, 1.7300, 8.9775)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1456 #3D5614
analogous
#141C56 #2D1456 #4E1456
triadic
#2D1456 #562D14 #14562D
tetradic
#2D1456 #56141C #3D5614 #14564E
square
#2D1456 #56141C #3D5614 #14564E
split-complementary
#2D1456 #564E14 #1C5614
monochromatic
#0D0619 #130824 #2D1456 #472088 #612BB9

Accessibility & contrast

On white

15.60
#2D1456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D1456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1456
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1456#FFFFFF#000000##FFFFFF
##2D14561.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#222533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d1456;
/* rgb */ color: rgb(45, 20, 86);
/* oklch */ color: oklch(27.1% 0.112 295.2);
Tailwind
colors: {
  custom: {
    50: '#6b5486',
    500: '#2d1456',
    950: '#000000',
  },
}
SCSS
$custom: #2d1456;
$custom-light: #6b5486;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1456",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 262.727,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27144,
    "c": 0.11174,
    "h": 295.2
  },
  "luminance": 0.0173
}

Semantic roles & 50–950 ramp

primary
#2D1456
secondary
#6D8E38
accent
#E542A8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1456

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

Preview Lab → · Contrast checker → · Palette generator →

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