#2C1C73#2C1C73

#2C1C73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.140 H 283.1°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2C1C73
RGBrgb(44, 28, 115)
HSLhsl(251, 61%, 28%)
HSVhsv(251, 76%, 45%)
CMYKcmyk(61.7%, 75.7%, 0%, 54.9%)
CIE-LABlab(18.38, 33.32, -47.31)
CIE-LCHlch(18.38, 57.87, 305.16°)
OKLaboklab(31.1% 0.0316 -0.1363)
OKLCHoklch(31.1% 0.14 283.1)
XYZxyz(4.5475, 2.6035, 16.4792)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C73 #63731C
analogous
#1C3873 #2C1C73 #571C73
triadic
#2C1C73 #732C1C #1C732C
tetradic
#2C1C73 #731C38 #63731C #1C7357
square
#2C1C73 #731C38 #63731C #1C7357
split-complementary
#2C1C73 #73571C #38731C
monochromatic
#090619 #191042 #2C1C73 #3F28A4 #563ACF

Accessibility & contrast

On white

13.81
#2C1C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2C1C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C73
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C73#FFFFFF#000000##FFFFFF
##2C1C731.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1c73;
/* rgb */ color: rgb(44, 28, 115);
/* oklch */ color: oklch(31.1% 0.140 283.1);
Tailwind
colors: {
  custom: {
    50: '#6f5a9c',
    500: '#2c1c73',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c73;
$custom-light: #6f5a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c73",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 115
  },
  "hsl": {
    "h": 251.034,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31096,
    "c": 0.13992,
    "h": 283.1
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#2C1C73
secondary
#95A743
accent
#E444C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1C73

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

Preview Lab → · Contrast checker → · Palette generator →

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