#2D1568#2D1568

#2D1568 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.134 H 288.3°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#2D1568
RGBrgb(45, 21, 104)
HSLhsl(257, 66%, 25%)
HSVhsv(257, 80%, 41%)
CMYKcmyk(56.7%, 79.8%, 0%, 59.2%)
CIE-LABlab(15.97, 33.89, -44.10)
CIE-LCHlch(15.97, 55.62, 307.54°)
OKLaboklab(29.08% 0.0419 -0.1268)
OKLCHoklch(29.08% 0.134 288.3)
XYZxyz(3.8483, 2.0935, 13.2953)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1568 #506815
analogous
#152768 #2D1568 #571568
triadic
#2D1568 #682D15 #15682D
tetradic
#2D1568 #681527 #506815 #156857
square
#2D1568 #681527 #506815 #156857
split-complementary
#2D1568 #685715 #276815
monochromatic
#0B0519 #170B35 #2D1568 #431F9B #592ACE

Accessibility & contrast

On white

14.80
#2D1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1568
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1568#FFFFFF#000000##FFFFFF
##2D15681.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#152C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1568;
/* rgb */ color: rgb(45, 21, 104);
/* oklch */ color: oklch(29.1% 0.134 288.3);
Tailwind
colors: {
  custom: {
    50: '#6e5594',
    500: '#2d1568',
    950: '#000000',
  },
}
SCSS
$custom: #2d1568;
$custom-light: #6e5594;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1568",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 257.349,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29079,
    "c": 0.13359,
    "h": 288.3
  },
  "luminance": 0.02094
}

Semantic roles & 50–950 ramp

primary
#2D1568
secondary
#829F3A
accent
#E93EB8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1568

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

Preview Lab → · Contrast checker → · Palette generator →

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