#2C1A77#2C1A77

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

Color values

HEX#2C1A77
RGBrgb(44, 26, 119)
HSLhsl(252, 64%, 28%)
HSVhsv(252, 78%, 47%)
CMYKcmyk(63%, 78.2%, 0%, 53.3%)
CIE-LABlab(18.39, 35.77, -49.86)
CIE-LCHlch(18.39, 61.36, 305.65°)
OKLaboklab(31.23% 0.0321 -0.1438)
OKLCHoklch(31.23% 0.147 282.6)
XYZxyz(4.7368, 2.6058, 17.7026)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A77 #65771A
analogous
#1A3677 #2C1A77 #5A1A77
triadic
#2C1A77 #772C1A #1A772C
tetradic
#2C1A77 #771A36 #65771A #1A775A
square
#2C1A77 #771A36 #65771A #1A775A
split-complementary
#2C1A77 #775A1A #36771A
monochromatic
#090519 #190F45 #2C1A77 #3F25A9 #5638D3

Accessibility & contrast

On white

13.80
#2C1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A77
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A77#FFFFFF#000000##FFFFFF
##2C1A771.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1a77;
/* rgb */ color: rgb(44, 26, 119);
/* oklch */ color: oklch(31.2% 0.147 282.6);
Tailwind
colors: {
  custom: {
    50: '#70599f',
    500: '#2c1a77',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a77;
$custom-light: #70599f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a77",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 251.613,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31229,
    "c": 0.14732,
    "h": 282.6
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#2C1A77
secondary
#97AC41
accent
#E741C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2C1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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