#2C1D73#2C1D73

#2C1D73 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.139 H 282.8°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2C1D73
RGBrgb(44, 29, 115)
HSLhsl(250, 60%, 28%)
HSVhsv(250, 75%, 45%)
CMYKcmyk(61.7%, 74.8%, 0%, 54.9%)
CIE-LABlab(18.59, 32.74, -46.96)
CIE-LCHlch(18.59, 57.24, 304.88°)
OKLaboklab(31.25% 0.0308 -0.1353)
OKLCHoklch(31.25% 0.139 282.8)
XYZxyz(4.5716, 2.6517, 16.4873)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D73 #64731D
analogous
#1D3973 #2C1D73 #571D73
triadic
#2C1D73 #732C1D #1D732C
tetradic
#2C1D73 #731D39 #64731D #1D7357
square
#2C1D73 #731D39 #64731D #1D7357
split-complementary
#2C1D73 #73571D #39731D
monochromatic
#090618 #191142 #2C1D73 #3F29A4 #563CCE

Accessibility & contrast

On white

13.72
#2C1D73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2C1D73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D73
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D73#FFFFFF#000000##FFFFFF
##2C1D731.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2c1d73;
/* rgb */ color: rgb(44, 29, 115);
/* oklch */ color: oklch(31.2% 0.139 282.8);
Tailwind
colors: {
  custom: {
    50: '#6e5b9c',
    500: '#2c1d73',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d73;
$custom-light: #6e5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d73",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 115
  },
  "hsl": {
    "h": 250.465,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31246,
    "c": 0.13875,
    "h": 282.8
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#2C1D73
secondary
#96A745
accent
#E345C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1D73

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

Preview Lab → · Contrast checker → · Palette generator →

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