#2C1181#2C1181

#2C1181 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.168 H 281.8°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1181
RGBrgb(44, 17, 129)
HSLhsl(254, 77%, 29%)
HSVhsv(254, 87%, 51%)
CMYKcmyk(65.9%, 86.8%, 0%, 49.4%)
CIE-LABlab(18.01, 43.21, -56.87)
CIE-LCHlch(18.01, 71.42, 307.23°)
OKLaboklab(31.3% 0.0342 -0.1641)
OKLCHoklch(31.3% 0.168 281.8)
XYZxyz(5.2004, 2.5210, 20.9772)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1181 #668111
analogous
#112E81 #2C1181 #641181
triadic
#2C1181 #812C11 #11812C
tetradic
#2C1181 #81112E #668111 #118164
square
#2C1181 #81112E #668111 #118164
split-complementary
#2C1181 #816411 #2E8111
monochromatic
#09041B #1A0A4B #2C1181 #3E18B7 #562AE3

Accessibility & contrast

On white

13.96
#2C1181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C1181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1181
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1181#FFFFFF#000000##FFFFFF
##2C11811.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1181;
/* rgb */ color: rgb(44, 17, 129);
/* oklch */ color: oklch(31.3% 0.168 281.8);
Tailwind
colors: {
  custom: {
    50: '#7255a7',
    500: '#2c1181',
    950: '#000000',
  },
}
SCSS
$custom: #2c1181;
$custom-light: #7255a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1181",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 129
  },
  "hsl": {
    "h": 254.464,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31301,
    "c": 0.16759,
    "h": 281.8
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#2C1181
secondary
#98B737
accent
#F335C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2C1181

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

Preview Lab → · Contrast checker → · Palette generator →

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