#2C1679#2C1679

#2C1679 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.154 H 282.9°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2C1679
RGBrgb(44, 22, 121)
HSLhsl(253, 69%, 28%)
HSVhsv(253, 82%, 47%)
CMYKcmyk(63.6%, 81.8%, 0%, 52.5%)
CIE-LABlab(17.87, 38.51, -52.00)
CIE-LCHlch(17.87, 64.71, 306.52°)
OKLaboklab(30.93% 0.0343 -0.15)
OKLCHoklch(30.93% 0.154 282.9)
XYZxyz(4.7757, 2.4894, 18.3143)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1679 #637916
analogous
#163279 #2C1679 #5D1679
triadic
#2C1679 #792C16 #16792C
tetradic
#2C1679 #791632 #637916 #16795D
square
#2C1679 #791632 #637916 #16795D
split-complementary
#2C1679 #795D16 #327916
monochromatic
#09051A #190D45 #2C1679 #3F1FAD #5630D9

Accessibility & contrast

On white

14.02
#2C1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1679
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1679#FFFFFF#000000##FFFFFF
##2C16791.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1679;
/* rgb */ color: rgb(44, 22, 121);
/* oklch */ color: oklch(30.9% 0.154 282.9);
Tailwind
colors: {
  custom: {
    50: '#7057a1',
    500: '#2c1679',
    950: '#000000',
  },
}
SCSS
$custom: #2c1679;
$custom-light: #7057a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1679",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 253.333,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3093,
    "c": 0.15384,
    "h": 282.9
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#2C1679
secondary
#95AE3D
accent
#EC3CC5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2C1679

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

Preview Lab → · Contrast checker → · Palette generator →

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