#2C1B81#2C1B81

#2C1B81 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.159 H 280.4°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2C1B81
RGBrgb(44, 27, 129)
HSLhsl(250, 65%, 31%)
HSVhsv(250, 79%, 51%)
CMYKcmyk(65.9%, 79.1%, 0%, 49.4%)
CIE-LABlab(19.65, 38.43, -54.15)
CIE-LCHlch(19.65, 66.41, 305.36°)
OKLaboklab(32.44% 0.0287 -0.1563)
OKLCHoklch(32.44% 0.159 280.4)
XYZxyz(5.3918, 2.9039, 21.0410)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B81 #70811B
analogous
#1B3D81 #2C1B81 #5F1B81
triadic
#2C1B81 #812C1B #1B812C
tetradic
#2C1B81 #811B3D #70811B #1B815F
square
#2C1B81 #811B3D #70811B #1B815F
split-complementary
#2C1B81 #815F1B #3D811B
monochromatic
#09061C #1B104E #2C1B81 #3D26B4 #593FD7

Accessibility & contrast

On white

13.28
#2C1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1B81
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B81#FFFFFF#000000##FFFFFF
##2C1B811.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1b81;
/* rgb */ color: rgb(44, 27, 129);
/* oklch */ color: oklch(32.4% 0.159 280.4);
Tailwind
colors: {
  custom: {
    50: '#725aa7',
    500: '#2c1b81',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b81;
$custom-light: #725aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b81",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 250,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32438,
    "c": 0.15892,
    "h": 280.4
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#2C1B81
secondary
#A2B543
accent
#E83FCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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