#2C1149#2C1149

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

Color values

HEX#2C1149
RGBrgb(44, 17, 73)
HSLhsl(269, 62%, 18%)
HSVhsv(269, 77%, 29%)
CMYKcmyk(39.7%, 76.7%, 0%, 71.4%)
CIE-LABlab(12.07, 26.52, -29.55)
CIE-LCHlch(12.07, 39.71, 311.91°)
OKLaboklab(25.37% 0.0521 -0.0841)
OKLCHoklch(25.37% 0.099 301.8)
XYZxyz(2.4415, 1.4174, 6.4470)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1149 #2E4911
analogous
#111249 #2C1149 #481149
triadic
#2C1149 #492C11 #11492C
tetradic
#2C1149 #491112 #2E4911 #114948
square
#2C1149 #491112 #2E4911 #114948
split-complementary
#2C1149 #494811 #124911
monochromatic
#0F0619 #0F0619 #2C1149 #4A1D7B #6828AC

Accessibility & contrast

On white

16.36
#2C1149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1149
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1149#FFFFFF#000000##FFFFFF
##2C11491.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1149;
/* rgb */ color: rgb(44, 17, 73);
/* oklch */ color: oklch(25.4% 0.099 301.8);
Tailwind
colors: {
  custom: {
    50: '#68517c',
    500: '#2c1149',
    950: '#000000',
  },
}
SCSS
$custom: #2c1149;
$custom-light: #68517c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1149",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 73
  },
  "hsl": {
    "h": 268.929,
    "s": 62.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25372,
    "c": 0.09895,
    "h": 301.8
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#2C1149
secondary
#5C8233
accent
#E54397
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C1149

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

Preview Lab → · Contrast checker → · Palette generator →

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