#2C105C#2C105C

#2C105C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.124 H 292.9°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2C105C
RGBrgb(44, 16, 92)
HSLhsl(262, 70%, 21%)
HSVhsv(262, 83%, 36%)
CMYKcmyk(52.2%, 82.6%, 0%, 63.9%)
CIE-LABlab(13.70, 32.67, -39.86)
CIE-LCHlch(13.70, 51.54, 309.34°)
OKLaboklab(27.08% 0.0483 -0.1144)
OKLCHoklch(27.08% 0.124 292.9)
XYZxyz(3.1552, 1.6787, 10.2809)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C105C #405C10
analogous
#101A5C #2C105C #52105C
triadic
#2C105C #5C2C10 #105C2C
tetradic
#2C105C #5C101A #405C10 #105C52
square
#2C105C #5C101A #405C10 #105C52
split-complementary
#2C105C #5C5210 #1A5C10
monochromatic
#0C051A #130728 #2C105C #451990 #5E22C4

Accessibility & contrast

On white

15.72
#2C105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C105C
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C105C#FFFFFF#000000##FFFFFF
##2C105C1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#1D2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c105c;
/* rgb */ color: rgb(44, 16, 92);
/* oklch */ color: oklch(27.1% 0.124 292.9);
Tailwind
colors: {
  custom: {
    50: '#6b528b',
    500: '#2c105c',
    950: '#000000',
  },
}
SCSS
$custom: #2c105c;
$custom-light: #6b528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c105c",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 262.105,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27084,
    "c": 0.12417,
    "h": 292.9
  },
  "luminance": 0.01679
}

Semantic roles & 50–950 ramp

primary
#2C105C
secondary
#719533
accent
#ED3BAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C105C

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

Preview Lab → · Contrast checker → · Palette generator →

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