#2D1567#2D1567

#2D1567 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.132 H 288.6°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2D1567
RGBrgb(45, 21, 103)
HSLhsl(258, 66%, 24%)
HSVhsv(258, 80%, 40%)
CMYKcmyk(56.3%, 79.6%, 0%, 59.6%)
CIE-LABlab(15.87, 33.58, -43.61)
CIE-LCHlch(15.87, 55.04, 307.59°)
OKLaboklab(28.98% 0.0422 -0.1254)
OKLCHoklch(28.98% 0.132 288.6)
XYZxyz(3.7978, 2.0733, 13.0294)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1567 #4F6715
analogous
#152667 #2D1567 #561567
triadic
#2D1567 #672D15 #15672D
tetradic
#2D1567 #671526 #4F6715 #156756
square
#2D1567 #671526 #4F6715 #156756
split-complementary
#2D1567 #675615 #266715
monochromatic
#0B0519 #170B34 #2D1567 #431F9A #592ACD

Accessibility & contrast

On white

14.85
#2D1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1567
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1567#FFFFFF#000000##FFFFFF
##2D15671.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#162C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1567;
/* rgb */ color: rgb(45, 21, 103);
/* oklch */ color: oklch(29.0% 0.132 288.6);
Tailwind
colors: {
  custom: {
    50: '#6d5593',
    500: '#2d1567',
    950: '#000000',
  },
}
SCSS
$custom: #2d1567;
$custom-light: #6d5593;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1567",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 257.561,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28975,
    "c": 0.13233,
    "h": 288.6
  },
  "luminance": 0.02073
}

Semantic roles & 50–950 ramp

primary
#2D1567
secondary
#819E3A
accent
#E93FB7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1567

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

Preview Lab → · Contrast checker → · Palette generator →

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