#2C1461#2C1461

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

Color values

HEX#2C1461
RGBrgb(44, 20, 97)
HSLhsl(259, 66%, 23%)
HSVhsv(259, 79%, 38%)
CMYKcmyk(54.6%, 79.4%, 0%, 62%)
CIE-LABlab(14.95, 32.10, -41.16)
CIE-LCHlch(14.95, 52.19, 307.95°)
OKLaboklab(28.11% 0.0432 -0.1182)
OKLCHoklch(28.11% 0.126 290.1)
XYZxyz(3.4459, 1.8987, 11.4919)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1461 #496114
analogous
#142361 #2C1461 #521461
triadic
#2C1461 #612C14 #14612C
tetradic
#2C1461 #611423 #496114 #146152
square
#2C1461 #611423 #496114 #146152
split-complementary
#2C1461 #615214 #236114
monochromatic
#0C0519 #150A2E #2C1461 #431E94 #5A29C6

Accessibility & contrast

On white

15.22
#2C1461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1461
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1461#FFFFFF#000000##FFFFFF
##2C14611.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1461;
/* rgb */ color: rgb(44, 20, 97);
/* oklch */ color: oklch(28.1% 0.126 290.1);
Tailwind
colors: {
  custom: {
    50: '#6c548f',
    500: '#2c1461',
    950: '#000000',
  },
}
SCSS
$custom: #2c1461;
$custom-light: #6c548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1461",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 97
  },
  "hsl": {
    "h": 258.701,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28113,
    "c": 0.12588,
    "h": 290.1
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#2C1461
secondary
#7B9838
accent
#E93FB4
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1461

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

Preview Lab → · Contrast checker → · Palette generator →

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