#2C1A7B#2C1A7B

#2C1A7B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.152 H 281.8°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2C1A7B
RGBrgb(44, 26, 123)
HSLhsl(251, 65%, 29%)
HSVhsv(251, 79%, 48%)
CMYKcmyk(64.2%, 78.9%, 0%, 51.8%)
CIE-LABlab(18.82, 37.05, -51.72)
CIE-LCHlch(18.82, 63.62, 305.61°)
OKLaboklab(31.66% 0.0311 -0.1492)
OKLCHoklch(31.66% 0.152 281.8)
XYZxyz(4.9821, 2.7040, 18.9944)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A7B #697B1A
analogous
#1A397B #2C1A7B #5D1A7B
triadic
#2C1A7B #7B2C1A #1A7B2C
tetradic
#2C1A7B #7B1A39 #697B1A #1A7B5D
square
#2C1A7B #7B1A39 #697B1A #1A7B5D
split-complementary
#2C1A7B #7B5D1A #397B1A
monochromatic
#090519 #1A0F48 #2C1A7B #3E25AE #573AD5

Accessibility & contrast

On white

13.63
#2C1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A7B
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A7B#FFFFFF#000000##FFFFFF
##2C1A7B1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1a7b;
/* rgb */ color: rgb(44, 26, 123);
/* oklch */ color: oklch(31.7% 0.152 281.8);
Tailwind
colors: {
  custom: {
    50: '#7059a2',
    500: '#2c1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a7b;
$custom-light: #7059a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a7b",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 251.134,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31657,
    "c": 0.15239,
    "h": 281.8
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#2C1A7B
secondary
#9BAF42
accent
#E840C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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