#2C1264#2C1264

#2C1264 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.132 H 289.5°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2C1264
RGBrgb(44, 18, 100)
HSLhsl(259, 69%, 23%)
HSVhsv(259, 82%, 39%)
CMYKcmyk(56%, 82%, 0%, 60.8%)
CIE-LABlab(14.89, 34.07, -43.25)
CIE-LCHlch(14.89, 55.05, 308.23°)
OKLaboklab(28.17% 0.044 -0.1243)
OKLCHoklch(28.17% 0.132 289.5)
XYZxyz(3.5546, 1.8880, 12.2312)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1264 #4A6412
analogous
#122164 #2C1264 #551264
triadic
#2C1264 #642C12 #12642C
tetradic
#2C1264 #641221 #4A6412 #126455
square
#2C1264 #641221 #4A6412 #126455
split-complementary
#2C1264 #645512 #216412
monochromatic
#0B051A #150930 #2C1264 #431B98 #5A25CC

Accessibility & contrast

On white

15.24
#2C1264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C1264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1264
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1264#FFFFFF#000000##FFFFFF
##2C12641.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#17293B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1264;
/* rgb */ color: rgb(44, 18, 100);
/* oklch */ color: oklch(28.2% 0.132 289.5);
Tailwind
colors: {
  custom: {
    50: '#6d5391',
    500: '#2c1264',
    950: '#000000',
  },
}
SCSS
$custom: #2c1264;
$custom-light: #6d5391;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1264",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 259.024,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28167,
    "c": 0.13189,
    "h": 289.5
  },
  "luminance": 0.01888
}

Semantic roles & 50–950 ramp

primary
#2C1264
secondary
#7C9C36
accent
#EC3BB4
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1264

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

Preview Lab → · Contrast checker → · Palette generator →

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