#2C1D71#2C1D71

#2C1D71 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.136 H 283.3°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2C1D71
RGBrgb(44, 29, 113)
HSLhsl(251, 59%, 28%)
HSVhsv(251, 74%, 44%)
CMYKcmyk(61.1%, 74.3%, 0%, 55.7%)
CIE-LABlab(18.39, 32.07, -46.00)
CIE-LCHlch(18.39, 56.07, 304.89°)
OKLaboklab(31.04% 0.0312 -0.1325)
OKLCHoklch(31.04% 0.136 283.3)
XYZxyz(4.4578, 2.6062, 15.8877)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D71 #62711D
analogous
#1D3871 #2C1D71 #561D71
triadic
#2C1D71 #712C1D #1D712C
tetradic
#2C1D71 #711D38 #62711D #1D7156
square
#2C1D71 #711D38 #62711D #1D7156
split-complementary
#2C1D71 #71561D #38711D
monochromatic
#090618 #191140 #2C1D71 #3F29A2 #563CCD

Accessibility & contrast

On white

13.80
#2C1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D71
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D71#FFFFFF#000000##FFFFFF
##2C1D711.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#043445
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1d71;
/* rgb */ color: rgb(44, 29, 113);
/* oklch */ color: oklch(31.0% 0.136 283.3);
Tailwind
colors: {
  custom: {
    50: '#6e5b9b',
    500: '#2c1d71',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d71;
$custom-light: #6e5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d71",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 250.714,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31044,
    "c": 0.13609,
    "h": 283.3
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#2C1D71
secondary
#94A544
accent
#E245C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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