#2C1B79#2C1B79

#2C1B79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.149 H 282.0°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2C1B79
RGBrgb(44, 27, 121)
HSLhsl(251, 64%, 29%)
HSVhsv(251, 78%, 47%)
CMYKcmyk(63.6%, 77.7%, 0%, 52.5%)
CIE-LABlab(18.80, 35.86, -50.48)
CIE-LCHlch(18.80, 61.91, 305.39°)
OKLaboklab(31.58% 0.0309 -0.1456)
OKLCHoklch(31.58% 0.149 282)
XYZxyz(4.8808, 2.6995, 18.3493)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B79 #68791B
analogous
#1B3979 #2C1B79 #5B1B79
triadic
#2C1B79 #792C1B #1B792C
tetradic
#2C1B79 #791B39 #68791B #1B795B
square
#2C1B79 #791B39 #68791B #1B795B
split-complementary
#2C1B79 #795B1B #39791B
monochromatic
#090619 #1A1047 #2C1B79 #3E26AB #573BD3

Accessibility & contrast

On white

13.64
#2C1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B79
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B79#FFFFFF#000000##FFFFFF
##2C1B791.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1b79;
/* rgb */ color: rgb(44, 27, 121);
/* oklch */ color: oklch(31.6% 0.149 282.0);
Tailwind
colors: {
  custom: {
    50: '#705aa1',
    500: '#2c1b79',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b79;
$custom-light: #705aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b79",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 250.851,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31579,
    "c": 0.1488,
    "h": 282
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#2C1B79
secondary
#9AAD43
accent
#E741C9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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