#2C1150#2C1150

#2C1150 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.108 H 298.0°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2C1150
RGBrgb(44, 17, 80)
HSLhsl(266, 65%, 19%)
HSVhsv(266, 79%, 31%)
CMYKcmyk(45%, 78.8%, 0%, 68.6%)
CIE-LABlab(12.71, 28.58, -33.35)
CIE-LCHlch(12.71, 43.92, 310.59°)
OKLaboklab(26.02% 0.0506 -0.0953)
OKLCHoklch(26.02% 0.108 298)
XYZxyz(2.6867, 1.5155, 7.7388)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1150 #355011
analogous
#111650 #2C1150 #4C1150
triadic
#2C1150 #502C11 #11502C
tetradic
#2C1150 #501116 #355011 #11504C
square
#2C1150 #501116 #355011 #11504C
split-complementary
#2C1150 #504C11 #165011
monochromatic
#0E0519 #10061E #2C1150 #481C82 #6426B5

Accessibility & contrast

On white

16.11
#2C1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1150
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1150#FFFFFF#000000##FFFFFF
##2C11501.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#23212F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c1150;
/* rgb */ color: rgb(44, 17, 80);
/* oklch */ color: oklch(26.0% 0.108 298.0);
Tailwind
colors: {
  custom: {
    50: '#695282',
    500: '#2c1150',
    950: '#000000',
  },
}
SCSS
$custom: #2c1150;
$custom-light: #695282;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1150",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 265.714,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2602,
    "c": 0.10793,
    "h": 298
  },
  "luminance": 0.01516
}

Semantic roles & 50–950 ramp

primary
#2C1150
secondary
#658933
accent
#E840A0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C1150

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

Preview Lab → · Contrast checker → · Palette generator →

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