#2D1159#2D1159

#2D1159 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.119 H 294.7°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2D1159
RGBrgb(45, 17, 89)
HSLhsl(263, 68%, 21%)
HSVhsv(263, 81%, 35%)
CMYKcmyk(49.4%, 80.9%, 0%, 65.1%)
CIE-LABlab(13.71, 31.44, -37.83)
CIE-LCHlch(13.71, 49.19, 309.73°)
OKLaboklab(27.03% 0.05 -0.1084)
OKLCHoklch(27.03% 0.119 294.7)
XYZxyz(3.0853, 1.6800, 9.6110)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1159 #3D5911
analogous
#111959 #2D1159 #511159
triadic
#2D1159 #592D11 #11592D
tetradic
#2D1159 #591119 #3D5911 #115951
square
#2D1159 #591119 #3D5911 #115951
split-complementary
#2D1159 #595111 #195911
monochromatic
#0D051A #130726 #2D1159 #471B8C #6125C0

Accessibility & contrast

On white

15.72
#2D1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1159
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1159#FFFFFF#000000##FFFFFF
##2D11591.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#202434
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d1159;
/* rgb */ color: rgb(45, 17, 89);
/* oklch */ color: oklch(27.0% 0.119 294.7);
Tailwind
colors: {
  custom: {
    50: '#6b5289',
    500: '#2d1159',
    950: '#000000',
  },
}
SCSS
$custom: #2d1159;
$custom-light: #6b5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1159",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 263.333,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27027,
    "c": 0.11936,
    "h": 294.7
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#2D1159
secondary
#6D9234
accent
#EB3DA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1159

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

Preview Lab → · Contrast checker → · Palette generator →

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