#2C1977#2C1977

#2C1977 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.148 H 282.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2C1977
RGBrgb(44, 25, 119)
HSLhsl(252, 65%, 28%)
HSVhsv(252, 79%, 47%)
CMYKcmyk(63%, 79%, 0%, 53.3%)
CIE-LABlab(18.20, 36.31, -50.18)
CIE-LCHlch(18.20, 61.94, 305.89°)
OKLaboklab(31.09% 0.0329 -0.1447)
OKLCHoklch(31.09% 0.148 282.8)
XYZxyz(4.7151, 2.5623, 17.6953)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1977 #647719
analogous
#193577 #2C1977 #5B1977
triadic
#2C1977 #772C19 #19772C
tetradic
#2C1977 #771935 #647719 #19775B
square
#2C1977 #771935 #647719 #19775B
split-complementary
#2C1977 #775B19 #357719
monochromatic
#090519 #190E44 #2C1977 #3F24AA #5636D5

Accessibility & contrast

On white

13.88
#2C1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1977
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1977#FFFFFF#000000##FFFFFF
##2C19771.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.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: #2c1977;
/* rgb */ color: rgb(44, 25, 119);
/* oklch */ color: oklch(31.1% 0.148 282.8);
Tailwind
colors: {
  custom: {
    50: '#70589f',
    500: '#2c1977',
    950: '#000000',
  },
}
SCSS
$custom: #2c1977;
$custom-light: #70589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1977",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 252.128,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31094,
    "c": 0.14837,
    "h": 282.8
  },
  "luminance": 0.02563
}

Semantic roles & 50–950 ramp

primary
#2C1977
secondary
#96AC40
accent
#E840C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1977

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

Preview Lab → · Contrast checker → · Palette generator →

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