#2C1877#2C1877

#2C1877 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.149 H 283.0°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1877
RGBrgb(44, 24, 119)
HSLhsl(253, 66%, 28%)
HSVhsv(253, 80%, 47%)
CMYKcmyk(63%, 79.8%, 0%, 53.3%)
CIE-LABlab(18.01, 36.85, -50.49)
CIE-LCHlch(18.01, 62.51, 306.12°)
OKLaboklab(30.96% 0.0336 -0.1456)
OKLCHoklch(30.96% 0.149 283)
XYZxyz(4.6941, 2.5203, 17.6883)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1877 #637718
analogous
#183377 #2C1877 #5C1877
triadic
#2C1877 #772C18 #18772C
tetradic
#2C1877 #771833 #637718 #18775C
square
#2C1877 #771833 #637718 #18775C
split-complementary
#2C1877 #775C18 #337718
monochromatic
#090519 #190E44 #2C1877 #3F22AA #5633D6

Accessibility & contrast

On white

13.96
#2C1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1877
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1877#FFFFFF#000000##FFFFFF
##2C18771.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1877;
/* rgb */ color: rgb(44, 24, 119);
/* oklch */ color: oklch(31.0% 0.149 283.0);
Tailwind
colors: {
  custom: {
    50: '#70589f',
    500: '#2c1877',
    950: '#000000',
  },
}
SCSS
$custom: #2c1877;
$custom-light: #70589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1877",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 252.632,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30962,
    "c": 0.1494,
    "h": 283
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#2C1877
secondary
#95AC3F
accent
#E93EC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1877

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

Preview Lab → · Contrast checker → · Palette generator →

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