#2C1B73#2C1B73

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

Color values

HEX#2C1B73
RGBrgb(44, 27, 115)
HSLhsl(252, 62%, 28%)
HSVhsv(252, 77%, 45%)
CMYKcmyk(61.7%, 76.5%, 0%, 54.9%)
CIE-LABlab(18.17, 33.91, -47.65)
CIE-LCHlch(18.17, 58.48, 305.44°)
OKLaboklab(30.95% 0.0324 -0.1373)
OKLCHoklch(30.95% 0.141 283.3)
XYZxyz(4.5242, 2.5568, 16.4714)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B73 #62731B
analogous
#1B3673 #2C1B73 #581B73
triadic
#2C1B73 #732C1B #1B732C
tetradic
#2C1B73 #731B36 #62731B #1B7358
square
#2C1B73 #731B36 #62731B #1B7358
split-complementary
#2C1B73 #73581B #36731B
monochromatic
#090619 #190F41 #2C1B73 #3F27A5 #5638D0

Accessibility & contrast

On white

13.89
#2C1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1B73
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B73#FFFFFF#000000##FFFFFF
##2C1B731.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1b73;
/* rgb */ color: rgb(44, 27, 115);
/* oklch */ color: oklch(30.9% 0.141 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f599c',
    500: '#2c1b73',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b73;
$custom-light: #6f599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b73",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 251.591,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3095,
    "c": 0.14106,
    "h": 283.3
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#2C1B73
secondary
#94A842
accent
#E543C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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