#2D1362#2D1362

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

Color values

HEX#2D1362
RGBrgb(45, 19, 98)
HSLhsl(260, 68%, 23%)
HSVhsv(260, 81%, 38%)
CMYKcmyk(54.1%, 80.6%, 0%, 61.6%)
CIE-LABlab(14.98, 33.10, -41.76)
CIE-LCHlch(14.98, 53.29, 308.40°)
OKLaboklab(28.2% 0.0454 -0.12)
OKLCHoklch(28.2% 0.128 290.7)
XYZxyz(3.5190, 1.9053, 11.7353)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1362 #486213
analogous
#132062 #2D1362 #541362
triadic
#2D1362 #622D13 #13622D
tetradic
#2D1362 #621320 #486213 #136254
square
#2D1362 #621320 #486213 #136254
split-complementary
#2D1362 #625413 #206213
monochromatic
#0C051A #15092F #2D1362 #451D95 #5C27C9

Accessibility & contrast

On white

15.21
#2D1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1362
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1362#FFFFFF#000000##FFFFFF
##2D13621.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#1A293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1362;
/* rgb */ color: rgb(45, 19, 98);
/* oklch */ color: oklch(28.2% 0.128 290.7);
Tailwind
colors: {
  custom: {
    50: '#6d548f',
    500: '#2d1362',
    950: '#000000',
  },
}
SCSS
$custom: #2d1362;
$custom-light: #6d548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1362",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 259.747,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28198,
    "c": 0.12829,
    "h": 290.7
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#2D1362
secondary
#799A37
accent
#EA3DB1
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1362

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

Preview Lab → · Contrast checker → · Palette generator →

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