#2C1B78#2C1B78

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

Color values

HEX#2C1B78
RGBrgb(44, 27, 120)
HSLhsl(251, 63%, 29%)
HSVhsv(251, 78%, 47%)
CMYKcmyk(63.3%, 77.5%, 0%, 52.9%)
CIE-LABlab(18.69, 35.53, -50.01)
CIE-LCHlch(18.69, 61.34, 305.39°)
OKLaboklab(31.47% 0.0311 -0.1442)
OKLCHoklch(31.47% 0.148 282.2)
XYZxyz(4.8197, 2.6751, 18.0280)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B78 #67781B
analogous
#1B3978 #2C1B78 #5B1B78
triadic
#2C1B78 #782C1B #1B782C
tetradic
#2C1B78 #781B39 #67781B #1B785B
square
#2C1B78 #781B39 #67781B #1B785B
split-complementary
#2C1B78 #785B1B #39781B
monochromatic
#090619 #1A1046 #2C1B78 #3E26AA #563BD3

Accessibility & contrast

On white

13.68
#2C1B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1B78
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B78#FFFFFF#000000##FFFFFF
##2C1B781.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1b78;
/* rgb */ color: rgb(44, 27, 120);
/* oklch */ color: oklch(31.5% 0.148 282.2);
Tailwind
colors: {
  custom: {
    50: '#705aa0',
    500: '#2c1b78',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b78;
$custom-light: #705aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b78",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 250.968,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31473,
    "c": 0.14752,
    "h": 282.2
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#2C1B78
secondary
#99AC43
accent
#E641C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2C1B78

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

Preview Lab → · Contrast checker → · Palette generator →

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