#2C105B#2C105B

#2C105B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.123 H 293.3°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2C105B
RGBrgb(44, 16, 91)
HSLhsl(262, 70%, 21%)
HSVhsv(262, 82%, 36%)
CMYKcmyk(51.6%, 82.4%, 0%, 64.3%)
CIE-LABlab(13.60, 32.37, -39.36)
CIE-LCHlch(13.60, 50.96, 309.44°)
OKLaboklab(26.98% 0.0486 -0.1129)
OKLCHoklch(26.98% 0.123 293.3)
XYZxyz(3.1118, 1.6613, 10.0522)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C105B #3F5B10
analogous
#10195B #2C105B #51105B
triadic
#2C105B #5B2C10 #105B2C
tetradic
#2C105B #5B1019 #3F5B10 #105B51
square
#2C105B #5B1019 #3F5B10 #105B51
split-complementary
#2C105B #5B5110 #195B10
monochromatic
#0D051A #130727 #2C105B #45198F #5E22C3

Accessibility & contrast

On white

15.76
#2C105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C105B
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C105B#FFFFFF#000000##FFFFFF
##2C105B1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#1D2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c105b;
/* rgb */ color: rgb(44, 16, 91);
/* oklch */ color: oklch(27.0% 0.123 293.3);
Tailwind
colors: {
  custom: {
    50: '#6b528a',
    500: '#2c105b',
    950: '#000000',
  },
}
SCSS
$custom: #2c105b;
$custom-light: #6b528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c105b",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 262.4,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26981,
    "c": 0.12294,
    "h": 293.3
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#2C105B
secondary
#709433
accent
#ED3BAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C105B

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

Preview Lab → · Contrast checker → · Palette generator →

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