#2C1C79#2C1C79

#2C1C79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.148 H 281.8°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2C1C79
RGBrgb(44, 28, 121)
HSLhsl(250, 62%, 29%)
HSVhsv(250, 77%, 47%)
CMYKcmyk(63.6%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.00, 35.29, -50.15)
CIE-LCHlch(19.00, 61.32, 305.14°)
OKLaboklab(31.72% 0.0302 -0.1446)
OKLCHoklch(31.72% 0.148 281.8)
XYZxyz(4.9041, 2.7461, 18.3571)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C79 #69791C
analogous
#1C3B79 #2C1C79 #5B1C79
triadic
#2C1C79 #792C1C #1C792C
tetradic
#2C1C79 #791C3B #69791C #1C795B
square
#2C1C79 #791C3B #69791C #1C795B
split-complementary
#2C1C79 #795B1C #3B791C
monochromatic
#090619 #1A1047 #2C1C79 #3E28AB #573DD2

Accessibility & contrast

On white

13.56
#2C1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2C1C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C79
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C79#FFFFFF#000000##FFFFFF
##2C1C791.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1c79;
/* rgb */ color: rgb(44, 28, 121);
/* oklch */ color: oklch(31.7% 0.148 281.8);
Tailwind
colors: {
  custom: {
    50: '#705aa1',
    500: '#2c1c79',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c79;
$custom-light: #705aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c79",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 250.323,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3172,
    "c": 0.14772,
    "h": 281.8
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#2C1C79
secondary
#9BAD44
accent
#E542C9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1C79

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

Preview Lab → · Contrast checker → · Palette generator →

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