#2C1A63#2C1A63

#2C1A63 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.121 H 287.7°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2C1A63
RGBrgb(44, 26, 99)
HSLhsl(255, 58%, 25%)
HSVhsv(255, 74%, 39%)
CMYKcmyk(55.6%, 73.7%, 0%, 61.2%)
CIE-LABlab(16.38, 29.27, -40.14)
CIE-LCHlch(16.38, 49.68, 306.10°)
OKLaboklab(29.19% 0.0369 -0.1153)
OKLCHoklch(29.19% 0.121 287.7)
XYZxyz(3.6596, 2.1749, 12.0289)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A63 #51631A
analogous
#1A2C63 #2C1A63 #511A63
triadic
#2C1A63 #632C1A #1A632C
tetradic
#2C1A63 #631A2C #51631A #1A6351
square
#2C1A63 #631A2C #51631A #1A6351
split-complementary
#2C1A63 #63511A #2C631A
monochromatic
#0B0618 #160D33 #2C1A63 #422793 #5733C4

Accessibility & contrast

On white

14.63
#2C1A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1A63
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A63#FFFFFF#000000##FFFFFF
##2C1A631.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#172D3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1a63;
/* rgb */ color: rgb(44, 26, 99);
/* oklch */ color: oklch(29.2% 0.121 287.7);
Tailwind
colors: {
  custom: {
    50: '#6c5890',
    500: '#2c1a63',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a63;
$custom-light: #6c5890;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a63",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 254.795,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2919,
    "c": 0.12105,
    "h": 287.7
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#2C1A63
secondary
#839940
accent
#E246BB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2C1A63

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

Preview Lab → · Contrast checker → · Palette generator →

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