#2D1461#2D1461

#2D1461 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.126 H 290.9°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#2D1461
RGBrgb(45, 20, 97)
HSLhsl(259, 66%, 23%)
HSVhsv(259, 79%, 38%)
CMYKcmyk(53.6%, 79.4%, 0%, 62%)
CIE-LABlab(15.07, 32.27, -40.96)
CIE-LCHlch(15.07, 52.14, 308.23°)
OKLaboklab(28.23% 0.0448 -0.1176)
OKLCHoklch(28.23% 0.126 290.9)
XYZxyz(3.4894, 1.9211, 11.4939)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1461 #486114
analogous
#142161 #2D1461 #531461
triadic
#2D1461 #612D14 #14612D
tetradic
#2D1461 #611421 #486114 #146153
square
#2D1461 #611421 #486114 #146153
split-complementary
#2D1461 #615314 #216114
monochromatic
#0C0519 #150A2E #2D1461 #451E94 #5C29C6

Accessibility & contrast

On white

15.17
#2D1461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1461 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1461
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1461#FFFFFF#000000##FFFFFF
##2D14611.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#1B2939
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1461;
/* rgb */ color: rgb(45, 20, 97);
/* oklch */ color: oklch(28.2% 0.126 290.9);
Tailwind
colors: {
  custom: {
    50: '#6c548f',
    500: '#2d1461',
    950: '#000000',
  },
}
SCSS
$custom: #2d1461;
$custom-light: #6c548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1461",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 97
  },
  "hsl": {
    "h": 259.481,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28227,
    "c": 0.12587,
    "h": 290.9
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#2D1461
secondary
#799838
accent
#E93FB2
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1461

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

Preview Lab → · Contrast checker → · Palette generator →

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