#2C1883#2C1883

#2C1883 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.164 H 280.5°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2C1883
RGBrgb(44, 24, 131)
HSLhsl(251, 69%, 30%)
HSVhsv(251, 82%, 51%)
CMYKcmyk(66.4%, 81.7%, 0%, 48.6%)
CIE-LABlab(19.34, 40.62, -55.94)
CIE-LCHlch(19.34, 69.13, 305.98°)
OKLaboklab(32.28% 0.0299 -0.1615)
OKLCHoklch(32.28% 0.164 280.5)
XYZxyz(5.4608, 2.8270, 21.7262)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1883 #6F8318
analogous
#183983 #2C1883 #611883
triadic
#2C1883 #832C18 #18832C
tetradic
#2C1883 #831839 #6F8318 #188361
square
#2C1883 #831839 #6F8318 #188361
split-complementary
#2C1883 #836118 #398318
monochromatic
#09051C #1B0F4F #2C1883 #3D21B7 #583ADB

Accessibility & contrast

On white

13.42
#2C1883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1883
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1883#FFFFFF#000000##FFFFFF
##2C18831.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1883;
/* rgb */ color: rgb(44, 24, 131);
/* oklch */ color: oklch(32.3% 0.164 280.5);
Tailwind
colors: {
  custom: {
    50: '#7259a8',
    500: '#2c1883',
    950: '#000000',
  },
}
SCSS
$custom: #2c1883;
$custom-light: #7259a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1883",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 251.215,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32283,
    "c": 0.16423,
    "h": 280.5
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#2C1883
secondary
#A1B740
accent
#EC3CCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1883

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

Preview Lab → · Contrast checker → · Palette generator →

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