#2C1863#2C1863

#2C1863 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.124 H 288.3°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#2C1863
RGBrgb(44, 24, 99)
HSLhsl(256, 61%, 24%)
HSVhsv(256, 76%, 39%)
CMYKcmyk(55.6%, 75.8%, 0%, 61.2%)
CIE-LABlab(15.95, 30.46, -40.84)
CIE-LCHlch(15.95, 50.95, 306.72°)
OKLaboklab(28.88% 0.0389 -0.1173)
OKLCHoklch(28.88% 0.124 288.3)
XYZxyz(3.6168, 2.0894, 12.0147)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1863 #4F6318
analogous
#182A63 #2C1863 #521863
triadic
#2C1863 #632C18 #18632C
tetradic
#2C1863 #63182A #4F6318 #186352
square
#2C1863 #63182A #4F6318 #186352
split-complementary
#2C1863 #635218 #2A6318
monochromatic
#0B0619 #160C32 #2C1863 #422494 #5830C6

Accessibility & contrast

On white

14.81
#2C1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C1863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1863
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1863#FFFFFF#000000##FFFFFF
##2C18631.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#172C3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1863;
/* rgb */ color: rgb(44, 24, 99);
/* oklch */ color: oklch(28.9% 0.124 288.3);
Tailwind
colors: {
  custom: {
    50: '#6c5790',
    500: '#2c1863',
    950: '#000000',
  },
}
SCSS
$custom: #2c1863;
$custom-light: #6c5790;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1863",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 256,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28884,
    "c": 0.12363,
    "h": 288.3
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#2C1863
secondary
#81993E
accent
#E444B9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2C1863

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

Preview Lab → · Contrast checker → · Palette generator →

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