#2C1363#2C1363

#2C1363 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.130 H 289.6°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2C1363
RGBrgb(44, 19, 99)
HSLhsl(259, 68%, 23%)
HSVhsv(259, 81%, 39%)
CMYKcmyk(55.6%, 80.8%, 0%, 61.2%)
CIE-LABlab(14.96, 33.25, -42.46)
CIE-LCHlch(14.96, 53.93, 308.06°)
OKLaboklab(28.19% 0.0435 -0.122)
OKLCHoklch(28.19% 0.13 289.6)
XYZxyz(3.5231, 1.9019, 11.9834)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1363 #4A6313
analogous
#132263 #2C1363 #541363
triadic
#2C1363 #632C13 #13632C
tetradic
#2C1363 #631322 #4A6313 #136354
square
#2C1363 #631322 #4A6313 #136354
split-complementary
#2C1363 #635413 #226313
monochromatic
#0B051A #150930 #2C1363 #431D96 #5A27CA

Accessibility & contrast

On white

15.21
#2C1363 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C1363 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1363
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1363#FFFFFF#000000##FFFFFF
##2C13631.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002765
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#17293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1363;
/* rgb */ color: rgb(44, 19, 99);
/* oklch */ color: oklch(28.2% 0.130 289.6);
Tailwind
colors: {
  custom: {
    50: '#6c5490',
    500: '#2c1363',
    950: '#000000',
  },
}
SCSS
$custom: #2c1363;
$custom-light: #6c5490;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1363",
  "rgb": {
    "r": 44,
    "g": 19,
    "b": 99
  },
  "hsl": {
    "h": 258.75,
    "s": 67.797,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28188,
    "c": 0.12956,
    "h": 289.6
  },
  "luminance": 0.01902
}

Semantic roles & 50–950 ramp

primary
#2C1363
secondary
#7C9B37
accent
#EB3DB4
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2C1363

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

Preview Lab → · Contrast checker → · Palette generator →

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