#2C1971#2C1971

#2C1971 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.141 H 284.2°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2C1971
RGBrgb(44, 25, 113)
HSLhsl(253, 64%, 27%)
HSVhsv(253, 78%, 44%)
CMYKcmyk(61.1%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.57, 34.39, -47.35)
CIE-LCHlch(17.57, 58.52, 305.99°)
OKLaboklab(30.46% 0.0345 -0.1364)
OKLCHoklch(30.46% 0.141 284.2)
XYZxyz(4.3661, 2.4227, 15.8571)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1971 #5E7119
analogous
#193271 #2C1971 #581971
triadic
#2C1971 #712C19 #19712C
tetradic
#2C1971 #711932 #5E7119 #197158
square
#2C1971 #711932 #5E7119 #197158
split-complementary
#2C1971 #715819 #327119
monochromatic
#0A0619 #180E3F #2C1971 #4024A3 #5533D2

Accessibility & contrast

On white

14.15
#2C1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1971
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1971#FFFFFF#000000##FFFFFF
##2C19711.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#043244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1971;
/* rgb */ color: rgb(44, 25, 113);
/* oklch */ color: oklch(30.5% 0.141 284.2);
Tailwind
colors: {
  custom: {
    50: '#6e589b',
    500: '#2c1971',
    950: '#000000',
  },
}
SCSS
$custom: #2c1971;
$custom-light: #6e589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1971",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 252.955,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30458,
    "c": 0.14072,
    "h": 284.2
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#2C1971
secondary
#90A640
accent
#E741C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1971

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

Preview Lab → · Contrast checker → · Palette generator →

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