#2C1768#2C1768

#2C1768 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.131 H 287.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2C1768
RGBrgb(44, 23, 104)
HSLhsl(256, 64%, 25%)
HSVhsv(256, 78%, 41%)
CMYKcmyk(57.7%, 77.9%, 0%, 59.2%)
CIE-LABlab(16.24, 32.63, -43.66)
CIE-LCHlch(16.24, 54.51, 306.78°)
OKLaboklab(29.24% 0.0386 -0.1256)
OKLCHoklch(29.24% 0.131 287.1)
XYZxyz(3.8430, 2.1475, 13.3060)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1768 #536817
analogous
#172A68 #2C1768 #551768
triadic
#2C1768 #682C17 #17682C
tetradic
#2C1768 #68172A #536817 #176855
square
#2C1768 #68172A #536817 #176855
split-complementary
#2C1768 #685517 #2A6817
monochromatic
#0B0619 #170C36 #2C1768 #41229A #562DCC

Accessibility & contrast

On white

14.69
#2C1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1768
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1768#FFFFFF#000000##FFFFFF
##2C17681.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#122D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1768;
/* rgb */ color: rgb(44, 23, 104);
/* oklch */ color: oklch(29.2% 0.131 287.1);
Tailwind
colors: {
  custom: {
    50: '#6d5694',
    500: '#2c1768',
    950: '#000000',
  },
}
SCSS
$custom: #2c1768;
$custom-light: #6d5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1768",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 255.556,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29244,
    "c": 0.13138,
    "h": 287.1
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

primary
#2C1768
secondary
#859E3D
accent
#E741BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1768

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

Preview Lab → · Contrast checker → · Palette generator →

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