#2C1254#2C1254

#2C1254 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.112 H 295.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#2C1254
RGBrgb(44, 18, 84)
HSLhsl(264, 65%, 20%)
HSVhsv(264, 79%, 33%)
CMYKcmyk(47.6%, 78.6%, 0%, 67.1%)
CIE-LABlab(13.28, 29.22, -35.15)
CIE-LCHlch(13.28, 45.71, 309.74°)
OKLaboklab(26.54% 0.0486 -0.1006)
OKLCHoklch(26.54% 0.112 295.8)
XYZxyz(2.8548, 1.6081, 8.5458)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1254 #3A5412
analogous
#121954 #2C1254 #4D1254
triadic
#2C1254 #542C12 #12542C
tetradic
#2C1254 #541219 #3A5412 #12544D
square
#2C1254 #541219 #3A5412 #12544D
split-complementary
#2C1254 #544D12 #195412
monochromatic
#0D0519 #120722 #2C1254 #461D86 #6128B9

Accessibility & contrast

On white

15.89
#2C1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1254
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1254#FFFFFF#000000##FFFFFF
##2C12541.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#212331
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1254;
/* rgb */ color: rgb(44, 18, 84);
/* oklch */ color: oklch(26.5% 0.112 295.8);
Tailwind
colors: {
  custom: {
    50: '#6a5285',
    500: '#2c1254',
    950: '#000000',
  },
}
SCSS
$custom: #2c1254;
$custom-light: #6a5285;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1254",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 263.636,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.26543,
    "c": 0.11172,
    "h": 295.8
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#2C1254
secondary
#6A8D35
accent
#E840A6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1254

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

Preview Lab → · Contrast checker → · Palette generator →

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