#2C1983#2C1983

#2C1983 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.163 H 280.4°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2C1983
RGBrgb(44, 25, 131)
HSLhsl(251, 68%, 31%)
HSVhsv(251, 81%, 51%)
CMYKcmyk(66.4%, 80.9%, 0%, 48.6%)
CIE-LABlab(19.51, 40.11, -55.66)
CIE-LCHlch(19.51, 68.61, 305.78°)
OKLaboklab(32.4% 0.0294 -0.1606)
OKLCHoklch(32.4% 0.163 280.4)
XYZxyz(5.4818, 2.8690, 21.7332)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1983 #708319
analogous
#193B83 #2C1983 #611983
triadic
#2C1983 #832C19 #19832C
tetradic
#2C1983 #83193B #708319 #198361
square
#2C1983 #83193B #708319 #198361
split-complementary
#2C1983 #836119 #3B8319
monochromatic
#09051C #1B0F50 #2C1983 #3D23B6 #593DDA

Accessibility & contrast

On white

13.34
#2C1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1983
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1983#FFFFFF#000000##FFFFFF
##2C19831.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1983;
/* rgb */ color: rgb(44, 25, 131);
/* oklch */ color: oklch(32.4% 0.163 280.4);
Tailwind
colors: {
  custom: {
    50: '#7259a8',
    500: '#2c1983',
    950: '#000000',
  },
}
SCSS
$custom: #2c1983;
$custom-light: #7259a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1983",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 250.755,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32404,
    "c": 0.16331,
    "h": 280.4
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#2C1983
secondary
#A2B741
accent
#EB3DCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1983

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

Preview Lab → · Contrast checker → · Palette generator →

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