#2C1880#2C1880

#2C1880 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.161 H 281.1°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#2C1880
RGBrgb(44, 24, 128)
HSLhsl(252, 68%, 30%)
HSVhsv(252, 81%, 50%)
CMYKcmyk(65.6%, 81.3%, 0%, 49.8%)
CIE-LABlab(19.00, 39.68, -54.60)
CIE-LCHlch(19.00, 67.50, 306.01°)
OKLaboklab(31.95% 0.0309 -0.1576)
OKLCHoklch(31.95% 0.161 281.1)
XYZxyz(5.2604, 2.7469, 20.6709)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1880 #6C8018
analogous
#183880 #2C1880 #601880
triadic
#2C1880 #802C18 #18802C
tetradic
#2C1880 #801838 #6C8018 #188060
square
#2C1880 #801838 #6C8018 #188060
split-complementary
#2C1880 #806018 #388018
monochromatic
#09051A #1A0E4C #2C1880 #3E22B4 #5839DA

Accessibility & contrast

On white

13.55
#2C1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2C1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1880
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1880#FFFFFF#000000##FFFFFF
##2C18801.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c1880;
/* rgb */ color: rgb(44, 24, 128);
/* oklch */ color: oklch(31.9% 0.161 281.1);
Tailwind
colors: {
  custom: {
    50: '#7258a6',
    500: '#2c1880',
    950: '#000000',
  },
}
SCSS
$custom: #2c1880;
$custom-light: #7258a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1880",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 251.538,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31948,
    "c": 0.16056,
    "h": 281.1
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#2C1880
secondary
#9EB440
accent
#EB3DCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C1880

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

Preview Lab → · Contrast checker → · Palette generator →

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