#2D1861#2D1861

#2D1861 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.121 H 289.8°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2D1861
RGBrgb(45, 24, 97)
HSLhsl(257, 60%, 24%)
HSVhsv(257, 75%, 38%)
CMYKcmyk(53.6%, 75.3%, 0%, 62%)
CIE-LABlab(15.87, 30.01, -39.64)
CIE-LCHlch(15.87, 49.72, 307.12°)
OKLaboklab(28.8% 0.041 -0.1138)
OKLCHoklch(28.8% 0.121 289.8)
XYZxyz(3.5659, 2.0741, 11.5194)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1861 #4C6118
analogous
#182761 #2D1861 #511861
triadic
#2D1861 #612D18 #18612D
tetradic
#2D1861 #611827 #4C6118 #186151
square
#2D1861 #611827 #4C6118 #186151
split-complementary
#2D1861 #615118 #276118
monochromatic
#0B0619 #160C30 #2D1861 #442492 #5B30C3

Accessibility & contrast

On white

14.84
#2D1861 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1861
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1861#FFFFFF#000000##FFFFFF
##2D18611.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#1B2B3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1861;
/* rgb */ color: rgb(45, 24, 97);
/* oklch */ color: oklch(28.8% 0.121 289.8);
Tailwind
colors: {
  custom: {
    50: '#6c578f',
    500: '#2d1861',
    950: '#000000',
  },
}
SCSS
$custom: #2d1861;
$custom-light: #6c578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1861",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 97
  },
  "hsl": {
    "h": 257.26,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28796,
    "c": 0.12093,
    "h": 289.8
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#2D1861
secondary
#7D973D
accent
#E344B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1861

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

Preview Lab → · Contrast checker → · Palette generator →

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