#2C1E72#2C1E72

#2C1E72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.136 H 282.8°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#2C1E72
RGBrgb(44, 30, 114)
HSLhsl(250, 58%, 28%)
HSVhsv(250, 74%, 45%)
CMYKcmyk(61.4%, 73.7%, 0%, 55.3%)
CIE-LABlab(18.71, 31.80, -46.12)
CIE-LCHlch(18.71, 56.03, 304.59°)
OKLaboklab(31.3% 0.0301 -0.1328)
OKLCHoklch(31.3% 0.136 282.8)
XYZxyz(4.5393, 2.6786, 16.1942)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E72 #64721E
analogous
#1E3A72 #2C1E72 #561E72
triadic
#2C1E72 #722C1E #1E722C
tetradic
#2C1E72 #721E3A #64721E #1E7256
square
#2C1E72 #721E3A #64721E #1E7256
split-complementary
#2C1E72 #72561E #3A721E
monochromatic
#090618 #191142 #2C1E72 #3F2BA2 #563ECC

Accessibility & contrast

On white

13.67
#2C1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E72
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E72#FFFFFF#000000##FFFFFF
##2C1E721.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#023445
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1e72;
/* rgb */ color: rgb(44, 30, 114);
/* oklch */ color: oklch(31.3% 0.136 282.8);
Tailwind
colors: {
  custom: {
    50: '#6e5b9b',
    500: '#2c1e72',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e72;
$custom-light: #6e5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e72",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 250,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31299,
    "c": 0.13622,
    "h": 282.8
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#2C1E72
secondary
#96A646
accent
#E246C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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