#2D1B59#2D1B59

#2D1B59 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.106 H 291.6°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2D1B59
RGBrgb(45, 27, 89)
HSLhsl(257, 53%, 23%)
HSVhsv(257, 70%, 35%)
CMYKcmyk(49.4%, 69.7%, 0%, 65.1%)
CIE-LABlab(15.81, 25.60, -34.39)
CIE-LCHlch(15.81, 42.88, 306.66°)
OKLaboklab(28.53% 0.039 -0.0984)
OKLCHoklch(28.53% 0.106 291.6)
XYZxyz(3.2768, 2.0629, 9.6748)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B59 #47591B
analogous
#1B2859 #2D1B59 #4C1B59
triadic
#2D1B59 #592D1B #1B592D
tetradic
#2D1B59 #591B28 #47591B #1B594C
square
#2D1B59 #591B28 #47591B #1B594C
split-complementary
#2D1B59 #594C1B #28591B
monochromatic
#0C0717 #150D2A #2D1B59 #452988 #5C37B7

Accessibility & contrast

On white

14.87
#2D1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B59
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B59#FFFFFF#000000##FFFFFF
##2D1B591.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#202A37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1b59;
/* rgb */ color: rgb(45, 27, 89);
/* oklch */ color: oklch(28.5% 0.106 291.6);
Tailwind
colors: {
  custom: {
    50: '#6a5888',
    500: '#2d1b59',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b59;
$custom-light: #6a5888;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b59",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 257.419,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28528,
    "c": 0.10582,
    "h": 291.6
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

primary
#2D1B59
secondary
#788F41
accent
#DD4BB2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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