#2C1657#2C1657

#2C1657 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.110 H 293.3°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2C1657
RGBrgb(44, 22, 87)
HSLhsl(260, 60%, 21%)
HSVhsv(260, 75%, 34%)
CMYKcmyk(49.4%, 74.7%, 0%, 65.9%)
CIE-LABlab(14.39, 27.84, -35.38)
CIE-LCHlch(14.39, 45.02, 308.20°)
OKLaboklab(27.42% 0.0435 -0.1013)
OKLCHoklch(27.42% 0.11 293.3)
XYZxyz(3.0454, 1.7973, 9.2014)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1657 #415716
analogous
#162157 #2C1657 #4D1657
triadic
#2C1657 #572C16 #16572C
tetradic
#2C1657 #571621 #415716 #16574D
square
#2C1657 #571621 #415716 #16574D
split-complementary
#2C1657 #574D16 #215716
monochromatic
#0C0618 #130A26 #2C1657 #452288 #5D2FB9

Accessibility & contrast

On white

15.45
#2C1657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C1657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1657
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1657#FFFFFF#000000##FFFFFF
##2C16571.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#1F2634
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1657;
/* rgb */ color: rgb(44, 22, 87);
/* oklch */ color: oklch(27.4% 0.110 293.3);
Tailwind
colors: {
  custom: {
    50: '#6a5587',
    500: '#2c1657',
    950: '#000000',
  },
}
SCSS
$custom: #2c1657;
$custom-light: #6a5587;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1657",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 260.308,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27417,
    "c": 0.11025,
    "h": 293.3
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#2C1657
secondary
#728E3A
accent
#E345AD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1657

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

Preview Lab → · Contrast checker → · Palette generator →

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