#2C1B7F#2C1B7F

#2C1B7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.156 H 280.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2C1B7F
RGBrgb(44, 27, 127)
HSLhsl(250, 65%, 30%)
HSVhsv(250, 79%, 50%)
CMYKcmyk(65.4%, 78.7%, 0%, 50.2%)
CIE-LABlab(19.44, 37.79, -53.24)
CIE-LCHlch(19.44, 65.29, 305.37°)
OKLaboklab(32.22% 0.0293 -0.1536)
OKLCHoklch(32.22% 0.156 280.8)
XYZxyz(5.2602, 2.8512, 20.3477)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B7F #6E7F1B
analogous
#1B3C7F #2C1B7F #5E1B7F
triadic
#2C1B7F #7F2C1B #1B7F2C
tetradic
#2C1B7F #7F1B3C #6E7F1B #1B7F5E
square
#2C1B7F #7F1B3C #6E7F1B #1B7F5E
split-complementary
#2C1B7F #7F5E1B #3C7F1B
monochromatic
#09061A #1B104D #2C1B7F #3D26B1 #583ED6

Accessibility & contrast

On white

13.37
#2C1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B7F
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B7F#FFFFFF#000000##FFFFFF
##2C1B7F1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1b7f;
/* rgb */ color: rgb(44, 27, 127);
/* oklch */ color: oklch(32.2% 0.156 280.8);
Tailwind
colors: {
  custom: {
    50: '#715aa5',
    500: '#2c1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b7f;
$custom-light: #715aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b7f",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 250.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32222,
    "c": 0.15641,
    "h": 280.8
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#2C1B7F
secondary
#A0B343
accent
#E840CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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