#2C1248#2C1248

#2C1248 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.096 H 302.0°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#2C1248
RGBrgb(44, 18, 72)
HSLhsl(269, 60%, 18%)
HSVhsv(269, 75%, 28%)
CMYKcmyk(38.9%, 75%, 0%, 71.8%)
CIE-LABlab(12.20, 25.65, -28.66)
CIE-LCHlch(12.20, 38.46, 311.83°)
OKLaboklab(25.43% 0.051 -0.0815)
OKLCHoklch(25.43% 0.096 302)
XYZxyz(2.4244, 1.4360, 6.2791)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1248 #2E4812
analogous
#121348 #2C1248 #471248
triadic
#2C1248 #482C12 #12482C
tetradic
#2C1248 #481213 #2E4812 #124847
square
#2C1248 #481213 #2E4812 #124847
split-complementary
#2C1248 #484712 #134812
monochromatic
#0F0618 #0F0618 #2C1248 #4A1E79 #682AAA

Accessibility & contrast

On white

16.31
#2C1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C1248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1248
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1248#FFFFFF#000000##FFFFFF
##2C12481.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#261E2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c1248;
/* rgb */ color: rgb(44, 18, 72);
/* oklch */ color: oklch(25.4% 0.096 302.0);
Tailwind
colors: {
  custom: {
    50: '#68527b',
    500: '#2c1248',
    950: '#000000',
  },
}
SCSS
$custom: #2c1248;
$custom-light: #68527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1248",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 268.889,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25432,
    "c": 0.09615,
    "h": 302
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#2C1248
secondary
#5C8135
accent
#E34597
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1248

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

Preview Lab → · Contrast checker → · Palette generator →

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