#2C105D#2C105D

#2C105D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.125 H 292.5°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2C105D
RGBrgb(44, 16, 93)
HSLhsl(262, 71%, 21%)
HSVhsv(262, 83%, 36%)
CMYKcmyk(52.7%, 82.8%, 0%, 63.5%)
CIE-LABlab(13.81, 32.97, -40.36)
CIE-LCHlch(13.81, 52.12, 309.24°)
OKLaboklab(27.19% 0.0479 -0.1159)
OKLCHoklch(27.19% 0.125 292.5)
XYZxyz(3.1992, 1.6963, 10.5126)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C105D #415D10
analogous
#101B5D #2C105D #53105D
triadic
#2C105D #5D2C10 #105D2C
tetradic
#2C105D #5D101B #415D10 #105D53
square
#2C105D #5D101B #415D10 #105D53
split-complementary
#2C105D #5D5310 #1B5D10
monochromatic
#0C041A #130729 #2C105D #451991 #5D22C5

Accessibility & contrast

On white

15.68
#2C105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C105D
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C105D#FFFFFF#000000##FFFFFF
##2C105D1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1C2636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c105d;
/* rgb */ color: rgb(44, 16, 93);
/* oklch */ color: oklch(27.2% 0.125 292.5);
Tailwind
colors: {
  custom: {
    50: '#6b528c',
    500: '#2c105d',
    950: '#000000',
  },
}
SCSS
$custom: #2c105d;
$custom-light: #6b528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c105d",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 261.818,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27188,
    "c": 0.1254,
    "h": 292.5
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#2C105D
secondary
#729633
accent
#ED3AAC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C105D

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

Preview Lab → · Contrast checker → · Palette generator →

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