#2C1972#2C1972

#2C1972 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.142 H 284.0°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2C1972
RGBrgb(44, 25, 114)
HSLhsl(253, 64%, 27%)
HSVhsv(253, 78%, 45%)
CMYKcmyk(61.4%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.67, 34.71, -47.83)
CIE-LCHlch(17.67, 59.10, 305.97°)
OKLaboklab(30.56% 0.0342 -0.1378)
OKLCHoklch(30.56% 0.142 284)
XYZxyz(4.4227, 2.4454, 16.1553)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1972 #5F7219
analogous
#193372 #2C1972 #591972
triadic
#2C1972 #722C19 #19722C
tetradic
#2C1972 #721933 #5F7219 #197259
square
#2C1972 #721933 #5F7219 #197259
split-complementary
#2C1972 #725919 #337219
monochromatic
#0A0619 #190E40 #2C1972 #3F24A4 #5533D2

Accessibility & contrast

On white

14.10
#2C1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1972
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1972#FFFFFF#000000##FFFFFF
##2C19721.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#033244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1972;
/* rgb */ color: rgb(44, 25, 114);
/* oklch */ color: oklch(30.6% 0.142 284.0);
Tailwind
colors: {
  custom: {
    50: '#6f589b',
    500: '#2c1972',
    950: '#000000',
  },
}
SCSS
$custom: #2c1972;
$custom-light: #6f589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1972",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 252.809,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30563,
    "c": 0.142,
    "h": 284
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

primary
#2C1972
secondary
#91A740
accent
#E741C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1972

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

Preview Lab → · Contrast checker → · Palette generator →

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