#2D1565#2D1565

#2D1565 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.130 H 289.3°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2D1565
RGBrgb(45, 21, 101)
HSLhsl(258, 66%, 24%)
HSVhsv(258, 79%, 40%)
CMYKcmyk(55.4%, 79.2%, 0%, 60.4%)
CIE-LABlab(15.66, 32.96, -42.63)
CIE-LCHlch(15.66, 53.89, 307.71°)
OKLaboklab(28.77% 0.0428 -0.1225)
OKLCHoklch(28.77% 0.13 289.3)
XYZxyz(3.6986, 2.0336, 12.5070)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1565 #4D6515
analogous
#152565 #2D1565 #551565
triadic
#2D1565 #652D15 #15652D
tetradic
#2D1565 #651525 #4D6515 #156555
square
#2D1565 #651525 #4D6515 #156555
split-complementary
#2D1565 #655515 #256515
monochromatic
#0B0519 #160A32 #2D1565 #442098 #5A2ACA

Accessibility & contrast

On white

14.93
#2D1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D1565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1565
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1565#FFFFFF#000000##FFFFFF
##2D15651.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#182B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1565;
/* rgb */ color: rgb(45, 21, 101);
/* oklch */ color: oklch(28.8% 0.130 289.3);
Tailwind
colors: {
  custom: {
    50: '#6d5592',
    500: '#2d1565',
    950: '#000000',
  },
}
SCSS
$custom: #2d1565;
$custom-light: #6d5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1565",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 258,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28769,
    "c": 0.12979,
    "h": 289.3
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#2D1565
secondary
#7F9C3A
accent
#E93FB6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1565

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

Preview Lab → · Contrast checker → · Palette generator →

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