#2D1161#2D1161

#2D1161 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.129 H 291.6°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2D1161
RGBrgb(45, 17, 97)
HSLhsl(261, 70%, 22%)
HSVhsv(261, 82%, 38%)
CMYKcmyk(53.6%, 82.5%, 0%, 62%)
CIE-LABlab(14.52, 33.82, -41.85)
CIE-LCHlch(14.52, 53.81, 308.94°)
OKLaboklab(27.85% 0.0475 -0.1202)
OKLCHoklch(27.85% 0.129 291.6)
XYZxyz(3.4397, 1.8217, 11.4773)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1161 #456111
analogous
#111D61 #2D1161 #551161
triadic
#2D1161 #612D11 #11612D
tetradic
#2D1161 #61111D #456111 #116155
square
#2D1161 #61111D #456111 #116155
split-complementary
#2D1161 #615511 #1D6111
monochromatic
#0C051A #15082D #2D1161 #451A95 #5D23C9

Accessibility & contrast

On white

15.39
#2D1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1161
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1161#FFFFFF#000000##FFFFFF
##2D11611.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#1B2839
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1161;
/* rgb */ color: rgb(45, 17, 97);
/* oklch */ color: oklch(27.8% 0.129 291.6);
Tailwind
colors: {
  custom: {
    50: '#6d538f',
    500: '#2d1161',
    950: '#000000',
  },
}
SCSS
$custom: #2d1161;
$custom-light: #6d538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1161",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 261,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27845,
    "c": 0.12925,
    "h": 291.6
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#2D1161
secondary
#769934
accent
#ED3BAF
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D1161

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

Preview Lab → · Contrast checker → · Palette generator →

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