#2C1B76#2C1B76

#2C1B76 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.145 H 282.6°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2C1B76
RGBrgb(44, 27, 118)
HSLhsl(251, 63%, 28%)
HSVhsv(251, 77%, 46%)
CMYKcmyk(62.7%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.48, 34.88, -49.07)
CIE-LCHlch(18.48, 60.20, 305.41°)
OKLaboklab(31.26% 0.0317 -0.1414)
OKLCHoklch(31.26% 0.145 282.6)
XYZxyz(4.6996, 2.6270, 17.3954)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B76 #65761B
analogous
#1B3776 #2C1B76 #591B76
triadic
#2C1B76 #762C1B #1B762C
tetradic
#2C1B76 #761B37 #65761B #1B7659
square
#2C1B76 #761B37 #65761B #1B7659
split-complementary
#2C1B76 #76591B #37761B
monochromatic
#090619 #191044 #2C1B76 #3F26A8 #563AD2

Accessibility & contrast

On white

13.77
#2C1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1B76
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B76#FFFFFF#000000##FFFFFF
##2C1B761.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1b76;
/* rgb */ color: rgb(44, 27, 118);
/* oklch */ color: oklch(31.3% 0.145 282.6);
Tailwind
colors: {
  custom: {
    50: '#6f5a9e',
    500: '#2c1b76',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b76;
$custom-light: #6f5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b76",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 251.209,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31263,
    "c": 0.14495,
    "h": 282.6
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#2C1B76
secondary
#97AA42
accent
#E642C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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