#2C1B7E#2C1B7E

#2C1B7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.155 H 281.0°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2C1B7E
RGBrgb(44, 27, 126)
HSLhsl(250, 65%, 30%)
HSVhsv(250, 79%, 49%)
CMYKcmyk(65.1%, 78.6%, 0%, 50.6%)
CIE-LABlab(19.33, 37.47, -52.79)
CIE-LCHlch(19.33, 64.73, 305.37°)
OKLaboklab(32.11% 0.0296 -0.1523)
OKLCHoklch(32.11% 0.155 281)
XYZxyz(5.1953, 2.8253, 20.0062)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B7E #6D7E1B
analogous
#1B3C7E #2C1B7E #5D1B7E
triadic
#2C1B7E #7E2C1B #1B7E2C
tetradic
#2C1B7E #7E1B3C #6D7E1B #1B7E5D
square
#2C1B7E #7E1B3C #6D7E1B #1B7E5D
split-complementary
#2C1B7E #7E5D1B #3C7E1B
monochromatic
#090519 #1A104C #2C1B7E #3E26B0 #583ED6

Accessibility & contrast

On white

13.42
#2C1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1B7E
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B7E#FFFFFF#000000##FFFFFF
##2C1B7E1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1b7e;
/* rgb */ color: rgb(44, 27, 126);
/* oklch */ color: oklch(32.1% 0.155 281.0);
Tailwind
colors: {
  custom: {
    50: '#715aa4',
    500: '#2c1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b7e;
$custom-light: #715aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b7e",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 250.303,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32114,
    "c": 0.15515,
    "h": 281
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#2C1B7E
secondary
#9FB243
accent
#E840CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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