#2C1460#2C1460

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

Color values

HEX#2C1460
RGBrgb(44, 20, 96)
HSLhsl(259, 66%, 23%)
HSVhsv(259, 79%, 38%)
CMYKcmyk(54.2%, 79.2%, 0%, 62.4%)
CIE-LABlab(14.85, 31.79, -40.66)
CIE-LCHlch(14.85, 51.61, 308.02°)
OKLaboklab(28.01% 0.0434 -0.1168)
OKLCHoklch(28.01% 0.125 290.4)
XYZxyz(3.3996, 1.8802, 11.2478)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1460 #486014
analogous
#142260 #2C1460 #521460
triadic
#2C1460 #602C14 #14602C
tetradic
#2C1460 #601422 #486014 #146052
square
#2C1460 #601422 #486014 #146052
split-complementary
#2C1460 #605214 #226014
monochromatic
#0C0519 #15092D #2C1460 #431F93 #5A29C5

Accessibility & contrast

On white

15.26
#2C1460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1460
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1460#FFFFFF#000000##FFFFFF
##2C14601.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#1A2939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1460;
/* rgb */ color: rgb(44, 20, 96);
/* oklch */ color: oklch(28.0% 0.125 290.4);
Tailwind
colors: {
  custom: {
    50: '#6c548e',
    500: '#2c1460',
    950: '#000000',
  },
}
SCSS
$custom: #2c1460;
$custom-light: #6c548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1460",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 258.947,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28011,
    "c": 0.12461,
    "h": 290.4
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1460

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

Preview Lab → · Contrast checker → · Palette generator →

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