#2C1783#2C1783

#2C1783 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.165 H 280.6°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#2C1783
RGBrgb(44, 23, 131)
HSLhsl(252, 70%, 30%)
HSVhsv(252, 82%, 51%)
CMYKcmyk(66.4%, 82.4%, 0%, 48.6%)
CIE-LABlab(19.17, 41.11, -56.22)
CIE-LCHlch(19.17, 69.65, 306.17°)
OKLaboklab(32.17% 0.0305 -0.1623)
OKLCHoklch(32.17% 0.165 280.6)
XYZxyz(5.4405, 2.7865, 21.7195)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1783 #6E8317
analogous
#173883 #2C1783 #621783
triadic
#2C1783 #832C17 #17832C
tetradic
#2C1783 #831738 #6E8317 #178362
square
#2C1783 #831738 #6E8317 #178362
split-complementary
#2C1783 #836217 #388317
monochromatic
#09051B #1B0E4F #2C1783 #3D20B7 #5838DC

Accessibility & contrast

On white

13.48
#2C1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2C1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1783
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1783#FFFFFF#000000##FFFFFF
##2C17831.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1783;
/* rgb */ color: rgb(44, 23, 131);
/* oklch */ color: oklch(32.2% 0.165 280.6);
Tailwind
colors: {
  custom: {
    50: '#7258a8',
    500: '#2c1783',
    950: '#000000',
  },
}
SCSS
$custom: #2c1783;
$custom-light: #7258a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1783",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 251.667,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32165,
    "c": 0.16512,
    "h": 280.6
  },
  "luminance": 0.02787
}

Semantic roles & 50–950 ramp

primary
#2C1783
secondary
#A0B73F
accent
#ED3BCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1783

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

Preview Lab → · Contrast checker → · Palette generator →

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