#2C1546#2C1546

#2C1546 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.089 H 302.1°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#2C1546
RGBrgb(44, 21, 70)
HSLhsl(268, 54%, 18%)
HSVhsv(268, 70%, 27%)
CMYKcmyk(37.1%, 70%, 0%, 72.5%)
CIE-LABlab(12.70, 23.24, -26.45)
CIE-LCHlch(12.70, 35.21, 311.30°)
OKLaboklab(25.74% 0.0472 -0.075)
OKLCHoklch(25.74% 0.089 302.1)
XYZxyz(2.4121, 1.5140, 5.9583)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1546 #2F4615
analogous
#151746 #2C1546 #441546
triadic
#2C1546 #462C15 #15462C
tetradic
#2C1546 #461517 #2F4615 #154644
square
#2C1546 #461517 #2F4615 #154644
split-complementary
#2C1546 #464415 #174615
monochromatic
#0F0718 #0F0718 #2C1546 #4A2375 #6731A4

Accessibility & contrast

On white

16.12
#2C1546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C1546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1546
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1546#FFFFFF#000000##FFFFFF
##2C15461.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#062145
Tritanopia (blue-blind)
#271F2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1546;
/* rgb */ color: rgb(44, 21, 70);
/* oklch */ color: oklch(25.7% 0.089 302.1);
Tailwind
colors: {
  custom: {
    50: '#68547a',
    500: '#2c1546',
    950: '#000000',
  },
}
SCSS
$custom: #2c1546;
$custom-light: #68547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1546",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 268.163,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25741,
    "c": 0.08863,
    "h": 302.1
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#2C1546
secondary
#5E7E39
accent
#DD4B98
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1546

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

Preview Lab → · Contrast checker → · Palette generator →

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