#2C1247#2C1247

#2C1247 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.095 H 302.6°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#2C1247
RGBrgb(44, 18, 71)
HSLhsl(269, 60%, 17%)
HSVhsv(269, 75%, 28%)
CMYKcmyk(38%, 74.6%, 0%, 72.2%)
CIE-LABlab(12.11, 25.36, -28.10)
CIE-LCHlch(12.11, 37.85, 312.07°)
OKLaboklab(25.34% 0.0511 -0.0799)
OKLCHoklch(25.34% 0.095 302.6)
XYZxyz(2.3921, 1.4230, 6.1087)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1247 #2D4712
analogous
#121247 #2C1247 #471247
triadic
#2C1247 #472C12 #12472C
tetradic
#2C1247 #471212 #2D4712 #124747
square
#2C1247 #471212 #2D4712 #124747
split-complementary
#2C1247 #474712 #124712
monochromatic
#0F0618 #0F0618 #2C1247 #4A1E78 #692BA9

Accessibility & contrast

On white

16.35
#2C1247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2C1247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1247
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1247#FFFFFF#000000##FFFFFF
##2C12471.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#002046
Tritanopia (blue-blind)
#271E2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c1247;
/* rgb */ color: rgb(44, 18, 71);
/* oklch */ color: oklch(25.3% 0.095 302.6);
Tailwind
colors: {
  custom: {
    50: '#68527b',
    500: '#2c1247',
    950: '#000000',
  },
}
SCSS
$custom: #2c1247;
$custom-light: #68527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1247",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 269.434,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25344,
    "c": 0.09484,
    "h": 302.6
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#2C1247
secondary
#5B8035
accent
#E34595
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1247

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

Preview Lab → · Contrast checker → · Palette generator →

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