#2D1558#2D1558

#2D1558 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.113 H 294.1°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#2D1558
RGBrgb(45, 21, 88)
HSLhsl(261, 61%, 21%)
HSVhsv(261, 76%, 35%)
CMYKcmyk(48.9%, 76.1%, 0%, 65.5%)
CIE-LABlab(14.39, 28.94, -36.03)
CIE-LCHlch(14.39, 46.22, 308.77°)
OKLaboklab(27.48% 0.0461 -0.1032)
OKLCHoklch(27.48% 0.113 294.1)
XYZxyz(3.1113, 1.7987, 9.4139)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1558 #405815
analogous
#151F58 #2D1558 #4F1558
triadic
#2D1558 #582D15 #15582D
tetradic
#2D1558 #58151F #405815 #15584F
square
#2D1558 #58151F #405815 #15584F
split-complementary
#2D1558 #584F15 #1F5815
monochromatic
#0D0619 #140927 #2D1558 #462189 #602DBB

Accessibility & contrast

On white

15.44
#2D1558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1558
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1558#FFFFFF#000000##FFFFFF
##2D15581.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#212634
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d1558;
/* rgb */ color: rgb(45, 21, 88);
/* oklch */ color: oklch(27.5% 0.113 294.1);
Tailwind
colors: {
  custom: {
    50: '#6b5488',
    500: '#2d1558',
    950: '#000000',
  },
}
SCSS
$custom: #2d1558;
$custom-light: #6b5488;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1558",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 261.493,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27481,
    "c": 0.11301,
    "h": 294.1
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#2D1558
secondary
#719039
accent
#E543AB
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1558

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

Preview Lab → · Contrast checker → · Palette generator →

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