#2C1864#2C1864

#2C1864 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.125 H 288.0°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2C1864
RGBrgb(44, 24, 100)
HSLhsl(256, 61%, 24%)
HSVhsv(256, 76%, 39%)
CMYKcmyk(56%, 76%, 0%, 60.8%)
CIE-LABlab(16.05, 30.78, -41.34)
CIE-LCHlch(16.05, 51.54, 306.67°)
OKLaboklab(28.98% 0.0387 -0.1188)
OKLCHoklch(28.98% 0.125 288)
XYZxyz(3.6649, 2.1087, 12.2680)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1864 #506418
analogous
#182A64 #2C1864 #521864
triadic
#2C1864 #642C18 #18642C
tetradic
#2C1864 #64182A #506418 #186452
square
#2C1864 #64182A #506418 #186452
split-complementary
#2C1864 #645218 #2A6418
monochromatic
#0B0619 #160C33 #2C1864 #422495 #5730C7

Accessibility & contrast

On white

14.77
#2C1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1864
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1864#FFFFFF#000000##FFFFFF
##2C18641.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#162C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1864;
/* rgb */ color: rgb(44, 24, 100);
/* oklch */ color: oklch(29.0% 0.125 288.0);
Tailwind
colors: {
  custom: {
    50: '#6c5791',
    500: '#2c1864',
    950: '#000000',
  },
}
SCSS
$custom: #2c1864;
$custom-light: #6c5791;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1864",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 255.789,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28983,
    "c": 0.12494,
    "h": 288
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#2C1864
secondary
#829A3E
accent
#E443BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1864

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

Preview Lab → · Contrast checker → · Palette generator →

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