#2C1655#2C1655

#2C1655 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.108 H 294.1°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#2C1655
RGBrgb(44, 22, 85)
HSLhsl(261, 59%, 21%)
HSVhsv(261, 74%, 33%)
CMYKcmyk(48.2%, 74.1%, 0%, 66.7%)
CIE-LABlab(14.20, 27.21, -34.32)
CIE-LCHlch(14.20, 43.80, 308.41°)
OKLaboklab(27.23% 0.0439 -0.0982)
OKLCHoklch(27.23% 0.108 294.1)
XYZxyz(2.9649, 1.7651, 8.7771)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1655 #3F5516
analogous
#161F55 #2C1655 #4B1655
triadic
#2C1655 #552C16 #16552C
tetradic
#2C1655 #55161F #3F5516 #16554B
square
#2C1655 #55161F #3F5516 #16554B
split-complementary
#2C1655 #554B16 #1F5516
monochromatic
#0D0618 #130924 #2C1655 #452386 #5E2FB6

Accessibility & contrast

On white

15.52
#2C1655 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1655
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1655#FFFFFF#000000##FFFFFF
##2C16551.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#202533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1655;
/* rgb */ color: rgb(44, 22, 85);
/* oklch */ color: oklch(27.2% 0.108 294.1);
Tailwind
colors: {
  custom: {
    50: '#6a5585',
    500: '#2c1655',
    950: '#000000',
  },
}
SCSS
$custom: #2c1655;
$custom-light: #6a5585;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1655",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 85
  },
  "hsl": {
    "h": 260.952,
    "s": 58.879,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27229,
    "c": 0.10757,
    "h": 294.1
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#2C1655
secondary
#708C3A
accent
#E246AB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1655

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

Preview Lab → · Contrast checker → · Palette generator →

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