#2C1B77#2C1B77

#2C1B77 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.146 H 282.4°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2C1B77
RGBrgb(44, 27, 119)
HSLhsl(251, 63%, 29%)
HSVhsv(251, 77%, 47%)
CMYKcmyk(63%, 77.3%, 0%, 53.3%)
CIE-LABlab(18.59, 35.21, -49.54)
CIE-LCHlch(18.59, 60.78, 305.40°)
OKLaboklab(31.37% 0.0314 -0.1428)
OKLCHoklch(31.37% 0.146 282.4)
XYZxyz(4.7594, 2.6509, 17.7101)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B77 #66771B
analogous
#1B3877 #2C1B77 #5A1B77
triadic
#2C1B77 #772C1B #1B772C
tetradic
#2C1B77 #771B38 #66771B #1B775A
square
#2C1B77 #771B38 #66771B #1B775A
split-complementary
#2C1B77 #775A1B #38771B
monochromatic
#090619 #1A1045 #2C1B77 #3E26A9 #563AD2

Accessibility & contrast

On white

13.72
#2C1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C1B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B77
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B77#FFFFFF#000000##FFFFFF
##2C1B771.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1b77;
/* rgb */ color: rgb(44, 27, 119);
/* oklch */ color: oklch(31.4% 0.146 282.4);
Tailwind
colors: {
  custom: {
    50: '#705a9f',
    500: '#2c1b77',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b77;
$custom-light: #705a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b77",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 251.087,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31368,
    "c": 0.14624,
    "h": 282.4
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#2C1B77
secondary
#98AB42
accent
#E642C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2C1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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