#2C1673#2C1673

#2C1673 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.146 H 284.3°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2C1673
RGBrgb(44, 22, 115)
HSLhsl(254, 68%, 27%)
HSVhsv(254, 81%, 45%)
CMYKcmyk(61.7%, 80.9%, 0%, 54.9%)
CIE-LABlab(17.21, 36.64, -49.23)
CIE-LCHlch(17.21, 61.37, 306.66°)
OKLaboklab(30.27% 0.0362 -0.1419)
OKLCHoklch(30.27% 0.146 284.3)
XYZxyz(4.4192, 2.3468, 16.4364)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1673 #5D7316
analogous
#162E73 #2C1673 #5B1673
triadic
#2C1673 #732C16 #16732C
tetradic
#2C1673 #73162E #5D7316 #16735B
square
#2C1673 #73162E #5D7316 #16735B
split-complementary
#2C1673 #735B16 #2E7316
monochromatic
#0A051A #180C40 #2C1673 #4020A6 #552DD7

Accessibility & contrast

On white

14.29
#2C1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2C1673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1673
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1673#FFFFFF#000000##FFFFFF
##2C16731.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#013144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1673;
/* rgb */ color: rgb(44, 22, 115);
/* oklch */ color: oklch(30.3% 0.146 284.3);
Tailwind
colors: {
  custom: {
    50: '#6f569c',
    500: '#2c1673',
    950: '#000000',
  },
}
SCSS
$custom: #2c1673;
$custom-light: #6f569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1673",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 254.194,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30273,
    "c": 0.14642,
    "h": 284.3
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#2C1673
secondary
#8FA93C
accent
#EB3DC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1673

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

Preview Lab → · Contrast checker → · Palette generator →

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