#2C1B80#2C1B80

#2C1B80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.158 H 280.6°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2C1B80
RGBrgb(44, 27, 128)
HSLhsl(250, 65%, 30%)
HSVhsv(250, 79%, 50%)
CMYKcmyk(65.6%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.55, 38.11, -53.70)
CIE-LCHlch(19.55, 65.85, 305.37°)
OKLaboklab(32.33% 0.029 -0.155)
OKLCHoklch(32.33% 0.158 280.6)
XYZxyz(5.3257, 2.8774, 20.6926)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B80 #6F801B
analogous
#1B3C80 #2C1B80 #5E1B80
triadic
#2C1B80 #802C1B #1B802C
tetradic
#2C1B80 #801B3C #6F801B #1B805E
square
#2C1B80 #801B3C #6F801B #1B805E
split-complementary
#2C1B80 #805E1B #3C801B
monochromatic
#09061B #1B104D #2C1B80 #3D26B3 #583FD6

Accessibility & contrast

On white

13.33
#2C1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C1B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B80
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B80#FFFFFF#000000##FFFFFF
##2C1B801.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1b80;
/* rgb */ color: rgb(44, 27, 128);
/* oklch */ color: oklch(32.3% 0.158 280.6);
Tailwind
colors: {
  custom: {
    50: '#715aa6',
    500: '#2c1b80',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b80;
$custom-light: #715aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b80",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 250.099,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3233,
    "c": 0.15766,
    "h": 280.6
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

primary
#2C1B80
secondary
#A1B443
accent
#E840CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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