#2C1A79#2C1A79

#2C1A79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.150 H 282.2°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2C1A79
RGBrgb(44, 26, 121)
HSLhsl(251, 65%, 29%)
HSVhsv(251, 79%, 47%)
CMYKcmyk(63.6%, 78.5%, 0%, 52.5%)
CIE-LABlab(18.60, 36.41, -50.80)
CIE-LCHlch(18.60, 62.50, 305.63°)
OKLaboklab(31.44% 0.0316 -0.1465)
OKLCHoklch(31.44% 0.15 282.2)
XYZxyz(4.8582, 2.6544, 18.3418)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A79 #67791A
analogous
#1A3879 #2C1A79 #5C1A79
triadic
#2C1A79 #792C1A #1A792C
tetradic
#2C1A79 #791A38 #67791A #1A795C
square
#2C1A79 #791A38 #67791A #1A795C
split-complementary
#2C1A79 #795C1A #38791A
monochromatic
#090519 #1A0F47 #2C1A79 #3E25AB #5639D4

Accessibility & contrast

On white

13.72
#2C1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1A79
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A79#FFFFFF#000000##FFFFFF
##2C1A791.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1a79;
/* rgb */ color: rgb(44, 26, 121);
/* oklch */ color: oklch(31.4% 0.150 282.2);
Tailwind
colors: {
  custom: {
    50: '#7059a1',
    500: '#2c1a79',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a79;
$custom-light: #7059a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a79",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 251.368,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31442,
    "c": 0.14986,
    "h": 282.2
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#2C1A79
secondary
#99AD41
accent
#E840C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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