#2C1263#2C1263

#2C1263 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.131 H 289.8°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2C1263
RGBrgb(44, 18, 99)
HSLhsl(259, 69%, 23%)
HSVhsv(259, 82%, 39%)
CMYKcmyk(55.6%, 81.8%, 0%, 61.2%)
CIE-LABlab(14.78, 33.76, -42.76)
CIE-LCHlch(14.78, 54.48, 308.30°)
OKLaboklab(28.06% 0.0443 -0.1229)
OKLCHoklch(28.06% 0.131 289.8)
XYZxyz(3.5065, 1.8688, 11.9779)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1263 #496312
analogous
#122163 #2C1263 #541263
triadic
#2C1263 #632C12 #12632C
tetradic
#2C1263 #631221 #496312 #126354
square
#2C1263 #631221 #496312 #126354
split-complementary
#2C1263 #635412 #216312
monochromatic
#0C051A #15092F #2C1263 #431B97 #5A25CB

Accessibility & contrast

On white

15.29
#2C1263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C1263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1263
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1263#FFFFFF#000000##FFFFFF
##2C12631.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002765
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#18293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1263;
/* rgb */ color: rgb(44, 18, 99);
/* oklch */ color: oklch(28.1% 0.131 289.8);
Tailwind
colors: {
  custom: {
    50: '#6c5390',
    500: '#2c1263',
    950: '#000000',
  },
}
SCSS
$custom: #2c1263;
$custom-light: #6c5390;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1263",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 259.259,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28061,
    "c": 0.13065,
    "h": 289.8
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#2C1263
secondary
#7B9B36
accent
#EC3CB3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2C1263

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

Preview Lab → · Contrast checker → · Palette generator →

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