#2C1547#2C1547

#2C1547 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.090 H 301.5°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#2C1547
RGBrgb(44, 21, 71)
HSLhsl(268, 54%, 18%)
HSVhsv(268, 70%, 28%)
CMYKcmyk(38%, 70.4%, 0%, 72.2%)
CIE-LABlab(12.78, 23.54, -27.02)
CIE-LCHlch(12.78, 35.84, 311.06°)
OKLaboklab(25.83% 0.0471 -0.0767)
OKLCHoklch(25.83% 0.09 301.5)
XYZxyz(2.4439, 1.5267, 6.1259)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1547 #304715
analogous
#151747 #2C1547 #451547
triadic
#2C1547 #472C15 #15472C
tetradic
#2C1547 #471517 #304715 #154745
square
#2C1547 #471517 #304715 #154745
split-complementary
#2C1547 #474515 #174715
monochromatic
#0F0718 #0F0718 #2C1547 #492376 #6731A5

Accessibility & contrast

On white

16.09
#2C1547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2C1547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1547
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1547#FFFFFF#000000##FFFFFF
##2C15471.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#042146
Tritanopia (blue-blind)
#26202B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1547;
/* rgb */ color: rgb(44, 21, 71);
/* oklch */ color: oklch(25.8% 0.090 301.5);
Tailwind
colors: {
  custom: {
    50: '#68547b',
    500: '#2c1547',
    950: '#000000',
  },
}
SCSS
$custom: #2c1547;
$custom-light: #68547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1547",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 71
  },
  "hsl": {
    "h": 267.6,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25825,
    "c": 0.09001,
    "h": 301.5
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#2C1547
secondary
#5F7F39
accent
#DE4A9A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1547

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

Preview Lab → · Contrast checker → · Palette generator →

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