#2C1779#2C1779

#2C1779 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.153 H 282.7°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#2C1779
RGBrgb(44, 23, 121)
HSLhsl(253, 68%, 28%)
HSVhsv(253, 81%, 47%)
CMYKcmyk(63.6%, 81%, 0%, 52.5%)
CIE-LABlab(18.05, 38.00, -51.71)
CIE-LCHlch(18.05, 64.17, 306.31°)
OKLaboklab(31.05% 0.0336 -0.1491)
OKLCHoklch(31.05% 0.153 282.7)
XYZxyz(4.7952, 2.5284, 18.3208)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1779 #647917
analogous
#173379 #2C1779 #5D1779
triadic
#2C1779 #792C17 #17792C
tetradic
#2C1779 #791733 #647917 #17795D
square
#2C1779 #791733 #647917 #17795D
split-complementary
#2C1779 #795D17 #337917
monochromatic
#09051A #190D46 #2C1779 #3F21AC #5632D8

Accessibility & contrast

On white

13.95
#2C1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1779
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1779#FFFFFF#000000##FFFFFF
##2C17791.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1779;
/* rgb */ color: rgb(44, 23, 121);
/* oklch */ color: oklch(31.1% 0.153 282.7);
Tailwind
colors: {
  custom: {
    50: '#7057a1',
    500: '#2c1779',
    950: '#000000',
  },
}
SCSS
$custom: #2c1779;
$custom-light: #7057a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1779",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 252.857,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31053,
    "c": 0.15288,
    "h": 282.7
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#2C1779
secondary
#96AE3E
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C1779

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

Preview Lab → · Contrast checker → · Palette generator →

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