#2C1D70#2C1D70

#2C1D70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.135 H 283.5°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2C1D70
RGBrgb(44, 29, 112)
HSLhsl(251, 59%, 28%)
HSVhsv(251, 74%, 44%)
CMYKcmyk(60.7%, 74.1%, 0%, 56.1%)
CIE-LABlab(18.29, 31.74, -45.51)
CIE-LCHlch(18.29, 55.49, 304.89°)
OKLaboklab(30.94% 0.0314 -0.131)
OKLCHoklch(30.94% 0.135 283.5)
XYZxyz(4.4018, 2.5838, 15.5929)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D70 #61701D
analogous
#1D3870 #2C1D70 #551D70
triadic
#2C1D70 #702C1D #1D702C
tetradic
#2C1D70 #701D38 #61701D #1D7055
square
#2C1D70 #701D38 #61701D #1D7055
split-complementary
#2C1D70 #70551D #38701D
monochromatic
#0A0618 #19103F #2C1D70 #3F2AA1 #553BCC

Accessibility & contrast

On white

13.84
#2C1D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1D70
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D70#FFFFFF#000000##FFFFFF
##2C1D701.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#063344
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1d70;
/* rgb */ color: rgb(44, 29, 112);
/* oklch */ color: oklch(30.9% 0.135 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e5a9a',
    500: '#2c1d70',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d70;
$custom-light: #6e5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d70",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 250.843,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30943,
    "c": 0.13476,
    "h": 283.5
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#2C1D70
secondary
#93A444
accent
#E246C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1D70

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

Preview Lab → · Contrast checker → · Palette generator →

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