#2D1460#2D1460

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

Color values

HEX#2D1460
RGBrgb(45, 20, 96)
HSLhsl(260, 66%, 23%)
HSVhsv(260, 79%, 38%)
CMYKcmyk(53.1%, 79.2%, 0%, 62.4%)
CIE-LABlab(14.97, 31.96, -40.46)
CIE-LCHlch(14.97, 51.56, 308.31°)
OKLaboklab(28.13% 0.0451 -0.1161)
OKLCHoklch(28.13% 0.125 291.2)
XYZxyz(3.4431, 1.9026, 11.2499)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1460 #476014
analogous
#142160 #2D1460 #531460
triadic
#2D1460 #602D14 #14602D
tetradic
#2D1460 #601421 #476014 #146053
square
#2D1460 #601421 #476014 #146053
split-complementary
#2D1460 #605314 #216014
monochromatic
#0C0519 #15092D #2D1460 #451F93 #5C29C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1460#FFFFFF#000000##FFFFFF
##2D14601.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)
#002762
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#1C2939
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1460;
/* rgb */ color: rgb(45, 20, 96);
/* oklch */ color: oklch(28.1% 0.125 291.2);
Tailwind
colors: {
  custom: {
    50: '#6c548e',
    500: '#2d1460',
    950: '#000000',
  },
}
SCSS
$custom: #2d1460;
$custom-light: #6c548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1460",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 259.737,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28126,
    "c": 0.1246,
    "h": 291.2
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#2D1460
secondary
#789838
accent
#E83FB1
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1460

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

Preview Lab → · Contrast checker → · Palette generator →

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