#2C1273#2C1273

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

Color values

HEX#2C1273
RGBrgb(44, 18, 115)
HSLhsl(256, 73%, 26%)
HSVhsv(256, 84%, 45%)
CMYKcmyk(61.7%, 84.3%, 0%, 54.9%)
CIE-LABlab(16.53, 38.61, -50.35)
CIE-LCHlch(16.53, 63.45, 307.48°)
OKLaboklab(29.8% 0.0388 -0.1451)
OKLCHoklch(29.8% 0.15 285)
XYZxyz(4.3486, 2.2056, 16.4129)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1273 #597312
analogous
#122973 #2C1273 #5C1273
triadic
#2C1273 #732C12 #12732C
tetradic
#2C1273 #731229 #597312 #12735C
square
#2C1273 #731229 #597312 #12735C
split-complementary
#2C1273 #735C12 #297312
monochromatic
#0A041A #180A3E #2C1273 #401AA8 #5523DD

Accessibility & contrast

On white

14.57
#2C1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1273
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1273#FFFFFF#000000##FFFFFF
##2C12731.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#022F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1273;
/* rgb */ color: rgb(44, 18, 115);
/* oklch */ color: oklch(29.8% 0.150 285.0);
Tailwind
colors: {
  custom: {
    50: '#6f549c',
    500: '#2c1273',
    950: '#000000',
  },
}
SCSS
$custom: #2c1273;
$custom-light: #6f549c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1273",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 256.082,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29801,
    "c": 0.15021,
    "h": 285
  },
  "luminance": 0.02206
}

Semantic roles & 50–950 ramp

primary
#2C1273
secondary
#8BAA37
accent
#F038BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1273

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

Preview Lab → · Contrast checker → · Palette generator →

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