#2C1174#2C1174

#2C1174 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.152 H 284.9°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#2C1174
RGBrgb(44, 17, 116)
HSLhsl(256, 74%, 26%)
HSVhsv(256, 85%, 45%)
CMYKcmyk(62.1%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.49, 39.37, -51.07)
CIE-LCHlch(16.49, 64.48, 307.63°)
OKLaboklab(29.81% 0.0391 -0.1472)
OKLCHoklch(29.81% 0.152 284.9)
XYZxyz(4.3906, 2.1970, 16.7123)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1174 #597411
analogous
#112774 #2C1174 #5D1174
triadic
#2C1174 #742C11 #11742C
tetradic
#2C1174 #741127 #597411 #11745D
square
#2C1174 #741127 #597411 #11745D
split-complementary
#2C1174 #745D11 #277411
monochromatic
#0A041B #18093F #2C1174 #4019A9 #5521DE

Accessibility & contrast

On white

14.59
#2C1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1174
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1174#FFFFFF#000000##FFFFFF
##2C11741.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1174;
/* rgb */ color: rgb(44, 17, 116);
/* oklch */ color: oklch(29.8% 0.152 284.9);
Tailwind
colors: {
  custom: {
    50: '#70549d',
    500: '#2c1174',
    950: '#000000',
  },
}
SCSS
$custom: #2c1174;
$custom-light: #70549d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1174",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 256.364,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29806,
    "c": 0.15228,
    "h": 284.9
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#2C1174
secondary
#8BAB36
accent
#F137BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1174

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

Preview Lab → · Contrast checker → · Palette generator →

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