#2C1876#2C1876

#2C1876 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.148 H 283.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2C1876
RGBrgb(44, 24, 118)
HSLhsl(253, 66%, 28%)
HSVhsv(253, 80%, 46%)
CMYKcmyk(62.7%, 79.7%, 0%, 53.7%)
CIE-LABlab(17.90, 36.53, -50.03)
CIE-LCHlch(17.90, 61.95, 306.14°)
OKLaboklab(30.85% 0.0339 -0.1442)
OKLCHoklch(30.85% 0.148 283.2)
XYZxyz(4.6343, 2.4964, 17.3737)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1876 #627618
analogous
#183376 #2C1876 #5B1876
triadic
#2C1876 #762C18 #18762C
tetradic
#2C1876 #761833 #627618 #18765B
square
#2C1876 #761833 #627618 #18765B
split-complementary
#2C1876 #765B18 #337618
monochromatic
#090519 #190E43 #2C1876 #3F22A9 #5633D5

Accessibility & contrast

On white

14.01
#2C1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1876
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1876#FFFFFF#000000##FFFFFF
##2C18761.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1876;
/* rgb */ color: rgb(44, 24, 118);
/* oklch */ color: oklch(30.9% 0.148 283.2);
Tailwind
colors: {
  custom: {
    50: '#70589e',
    500: '#2c1876',
    950: '#000000',
  },
}
SCSS
$custom: #2c1876;
$custom-light: #70589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1876",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 252.766,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30854,
    "c": 0.14814,
    "h": 283.2
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#2C1876
secondary
#94AB3F
accent
#E93FC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2C1876

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

Preview Lab → · Contrast checker → · Palette generator →

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