#2C1B72#2C1B72

#2C1B72 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.140 H 283.5°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2C1B72
RGBrgb(44, 27, 114)
HSLhsl(252, 62%, 28%)
HSVhsv(252, 76%, 45%)
CMYKcmyk(61.4%, 76.3%, 0%, 55.3%)
CIE-LABlab(18.07, 33.58, -47.17)
CIE-LCHlch(18.07, 57.90, 305.45°)
OKLaboklab(30.85% 0.0327 -0.1359)
OKLCHoklch(30.85% 0.14 283.5)
XYZxyz(4.4670, 2.5340, 16.1700)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B72 #61721B
analogous
#1B3672 #2C1B72 #571B72
triadic
#2C1B72 #722C1B #1B722C
tetradic
#2C1B72 #721B36 #61721B #1B7257
square
#2C1B72 #721B36 #61721B #1B7257
split-complementary
#2C1B72 #72571B #36721B
monochromatic
#0A0619 #190F41 #2C1B72 #3F27A3 #5538D0

Accessibility & contrast

On white

13.94
#2C1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B72
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B72#FFFFFF#000000##FFFFFF
##2C1B721.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#023345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1b72;
/* rgb */ color: rgb(44, 27, 114);
/* oklch */ color: oklch(30.8% 0.140 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e599b',
    500: '#2c1b72',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b72;
$custom-light: #6e599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b72",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 251.724,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30847,
    "c": 0.13976,
    "h": 283.5
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#2C1B72
secondary
#93A742
accent
#E543C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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