#2C1583#2C1583

#2C1583 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.167 H 280.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2C1583
RGBrgb(44, 21, 131)
HSLhsl(253, 72%, 30%)
HSVhsv(253, 84%, 51%)
CMYKcmyk(66.4%, 84%, 0%, 48.6%)
CIE-LABlab(18.84, 42.06, -56.76)
CIE-LCHlch(18.84, 70.64, 306.54°)
OKLaboklab(31.94% 0.0316 -0.1638)
OKLCHoklch(31.94% 0.167 280.9)
XYZxyz(5.4023, 2.7101, 21.7067)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1583 #6C8315
analogous
#153583 #2C1583 #631583
triadic
#2C1583 #832C15 #15832C
tetradic
#2C1583 #831535 #6C8315 #158363
square
#2C1583 #831535 #6C8315 #158363
split-complementary
#2C1583 #836315 #358315
monochromatic
#09041A #1A0D4E #2C1583 #3E1DB8 #5834DE

Accessibility & contrast

On white

13.62
#2C1583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C1583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1583
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1583#FFFFFF#000000##FFFFFF
##2C15831.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1583;
/* rgb */ color: rgb(44, 21, 131);
/* oklch */ color: oklch(31.9% 0.167 280.9);
Tailwind
colors: {
  custom: {
    50: '#7357a8',
    500: '#2c1583',
    950: '#000000',
  },
}
SCSS
$custom: #2c1583;
$custom-light: #7357a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1583",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 252.545,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31941,
    "c": 0.16682,
    "h": 280.9
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#2C1583
secondary
#9EB83C
accent
#EF39C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1583

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

Preview Lab → · Contrast checker → · Palette generator →

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