#2C105F#2C105F

#2C105F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.128 H 291.7°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2C105F
RGBrgb(44, 16, 95)
HSLhsl(261, 71%, 22%)
HSVhsv(261, 83%, 37%)
CMYKcmyk(53.7%, 83.2%, 0%, 62.7%)
CIE-LABlab(14.01, 33.56, -41.36)
CIE-LCHlch(14.01, 53.26, 309.06°)
OKLaboklab(27.4% 0.0473 -0.1188)
OKLCHoklch(27.4% 0.128 291.7)
XYZxyz(3.2890, 1.7322, 10.9853)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C105F #435F10
analogous
#101C5F #2C105F #54105F
triadic
#2C105F #5F2C10 #105F2C
tetradic
#2C105F #5F101C #435F10 #105F54
square
#2C105F #5F101C #435F10 #105F54
split-complementary
#2C105F #5F5410 #1C5F10
monochromatic
#0C041A #14072B #2C105F #441993 #5D22C8

Accessibility & contrast

On white

15.60
#2C105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C105F
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C105F#FFFFFF#000000##FFFFFF
##2C105F1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#1B2637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c105f;
/* rgb */ color: rgb(44, 16, 95);
/* oklch */ color: oklch(27.4% 0.128 291.7);
Tailwind
colors: {
  custom: {
    50: '#6c528d',
    500: '#2c105f',
    950: '#000000',
  },
}
SCSS
$custom: #2c105f;
$custom-light: #6c528d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c105f",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 261.266,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27397,
    "c": 0.12786,
    "h": 291.7
  },
  "luminance": 0.01732
}

Semantic roles & 50–950 ramp

primary
#2C105F
secondary
#749833
accent
#EE3AAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C105F

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

Preview Lab → · Contrast checker → · Palette generator →

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