#2C1042#2C1042

#2C1042 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.091 H 306.5°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#2C1042
RGBrgb(44, 16, 66)
HSLhsl(274, 61%, 16%)
HSVhsv(274, 76%, 26%)
CMYKcmyk(33.3%, 75.8%, 0%, 74.1%)
CIE-LABlab(11.27, 25.10, -25.95)
CIE-LCHlch(11.27, 36.10, 314.05°)
OKLaboklab(24.61% 0.0544 -0.0735)
OKLCHoklch(24.61% 0.091 306.5)
XYZxyz(2.2072, 1.2994, 5.2877)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1042 #264210
analogous
#131042 #2C1042 #42103F
triadic
#2C1042 #422C10 #10422C
tetradic
#2C1042 #421310 #264210 #103F42
square
#2C1042 #421310 #264210 #103F42
split-complementary
#2C1042 #3F4210 #104213
monochromatic
#100619 #100619 #2C1042 #4D1C73 #6E28A5

Accessibility & contrast

On white

16.67
#2C1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2C1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1042
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1042#FFFFFF#000000##FFFFFF
##2C10421.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#281B27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c1042;
/* rgb */ color: rgb(44, 16, 66);
/* oklch */ color: oklch(24.6% 0.091 306.5);
Tailwind
colors: {
  custom: {
    50: '#685077',
    500: '#2c1042',
    950: '#000000',
  },
}
SCSS
$custom: #2c1042;
$custom-light: #685077;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1042",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 273.6,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2461,
    "c": 0.09149,
    "h": 306.5
  },
  "luminance": 0.01299
}

Semantic roles & 50–950 ramp

primary
#2C1042
secondary
#527C32
accent
#E4448A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C1042

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

Preview Lab → · Contrast checker → · Palette generator →

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